Skip to content

Commit b949d04

Browse files
committed
Add feedbackface gemspec and core library files for FeedbackFace Ruby client; update README and Gemfile references to new gem name.
1 parent c0adfbf commit b949d04

12 files changed

Lines changed: 45 additions & 43 deletions

File tree

Gemfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,5 @@ source "https://rubygems.org"
22

33
git_source(:github) {|repo_name| "https://github.com/#{repo_name}" }
44

5-
# Specify your gem's dependencies in feedbackface-ruby.gemspec
5+
# Specify your gem's dependencies in feedbackface.gemspec
66
gemspec

Gemfile.lock

Lines changed: 27 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
PATH
22
remote: .
33
specs:
4-
feedbackface-ruby (0.1.0)
4+
feedbackface (0.1.0)
55
json (~> 2.6)
66

77
GEM
@@ -10,6 +10,7 @@ GEM
1010
addressable (2.8.7)
1111
public_suffix (>= 2.0.2, < 7.0)
1212
ast (2.4.3)
13+
base64 (0.3.0)
1314
bigdecimal (3.2.2)
1415
bundler-audit (0.9.2)
1516
bundler (>= 1.2.0, < 3)
@@ -18,48 +19,57 @@ GEM
1819
bigdecimal
1920
rexml
2021
hashdiff (1.2.0)
21-
json (2.7.6)
22-
minitest (5.25.4)
22+
json (2.12.2)
23+
language_server-protocol (3.17.0.5)
24+
lint_roller (1.1.0)
25+
minitest (5.25.5)
2326
mocha (2.7.1)
2427
ruby2_keywords (>= 0.0.5)
25-
parallel (1.24.0)
28+
parallel (1.27.0)
2629
parser (3.3.8.0)
2730
ast (~> 2.4.1)
2831
racc
29-
public_suffix (5.1.1)
32+
prism (1.4.0)
33+
public_suffix (6.0.2)
3034
racc (1.8.1)
3135
rainbow (3.1.1)
3236
rake (13.3.0)
3337
regexp_parser (2.10.0)
3438
rexml (3.4.1)
35-
rubocop (1.50.2)
39+
rubocop (1.76.0)
3640
json (~> 2.3)
41+
language_server-protocol (~> 3.17.0.2)
42+
lint_roller (~> 1.1.0)
3743
parallel (~> 1.10)
38-
parser (>= 3.2.0.0)
44+
parser (>= 3.3.0.2)
3945
rainbow (>= 2.2.2, < 4.0)
40-
regexp_parser (>= 1.8, < 3.0)
41-
rexml (>= 3.2.5, < 4.0)
42-
rubocop-ast (>= 1.28.0, < 2.0)
46+
regexp_parser (>= 2.9.3, < 3.0)
47+
rubocop-ast (>= 1.45.0, < 2.0)
4348
ruby-progressbar (~> 1.7)
44-
unicode-display_width (>= 2.4.0, < 3.0)
45-
rubocop-ast (1.30.0)
46-
parser (>= 3.2.1.0)
49+
unicode-display_width (>= 2.4.0, < 4.0)
50+
rubocop-ast (1.45.0)
51+
parser (>= 3.3.7.2)
52+
prism (~> 1.4)
4753
ruby-progressbar (1.13.0)
4854
ruby2_keywords (0.0.5)
4955
thor (1.3.2)
50-
unicode-display_width (2.6.0)
51-
vcr (6.1.0)
56+
unicode-display_width (3.1.4)
57+
unicode-emoji (~> 4.0, >= 4.0.4)
58+
unicode-emoji (4.0.4)
59+
vcr (6.3.1)
60+
base64
5261
webmock (3.25.1)
5362
addressable (>= 2.8.0)
5463
crack (>= 0.3.2)
5564
hashdiff (>= 0.4.0, < 2.0.0)
5665

5766
PLATFORMS
67+
arm64-darwin-24
5868
ruby
5969

6070
DEPENDENCIES
6171
bundler-audit (~> 0.9)
62-
feedbackface-ruby!
72+
feedbackface!
6373
minitest (~> 5.0)
6474
mocha (~> 2.0)
6575
rake (~> 13.0)
@@ -68,4 +78,4 @@ DEPENDENCIES
6878
webmock (~> 3.0)
6979

7080
BUNDLED WITH
71-
1.17.2
81+
2.6.9

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ Since this gem is not yet published to RubyGems, you can install it directly fro
1111
Add this line to your application's Gemfile:
1212

1313
```ruby
14-
gem 'feedbackface-ruby', git: 'https://github.com/feedbackface/feedbackface-ruby.git'
14+
gem 'feedbackface', git: 'https://github.com/feedbackface/feedbackface-ruby.git'
1515
```
1616

1717
And then execute:
@@ -25,7 +25,7 @@ $ bundle install
2525
Once published, you'll be able to install it with:
2626

2727
```ruby
28-
gem 'feedbackface-ruby'
28+
gem 'feedbackface'
2929
```
3030

3131
```bash
@@ -35,7 +35,7 @@ $ bundle install
3535
Or install it yourself as:
3636

3737
```bash
38-
$ gem install feedbackface-ruby
38+
$ gem install feedbackface
3939
```
4040

4141
## Usage
Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
# frozen_string_literal: true
22

3-
require_relative "lib/feedbackface/ruby/version"
3+
require_relative "lib/feedbackface/version"
44

55
Gem::Specification.new do |spec|
6-
spec.name = "feedbackface-ruby"
7-
spec.version = FeedbackFace::Ruby::VERSION
8-
spec.authors = ["Rinas"]
6+
spec.name = "feedbackface"
7+
spec.version = FeedbackFace::VERSION
8+
spec.authors = ["Rinas Muhammed"]
99
spec.email = ["rinas@feedbackface.com"]
1010

1111
spec.summary = "Ruby client for the FeedbackFace API"
Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
require_relative "ruby/version"
2-
require_relative "ruby/client"
3-
require_relative "ruby/customer"
1+
require_relative "feedbackface/version"
2+
require_relative "feedbackface/client"
3+
require_relative "feedbackface/customer"
44
require "net/http"
55
require "json"
66

lib/feedbackface/ruby/version.rb

Lines changed: 0 additions & 5 deletions
This file was deleted.

lib/feedbackface/version.rb

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
module FeedbackFace
2+
VERSION = "0.1.0"
3+
end

test/client_test.rb

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ def test_client_initialization_with_api_key
1414
assert_equal "custom_key", client.api_key
1515
end
1616

17-
def test_client_initialization_with_account_id
17+
def test_client_initialization_with_account_id
1818
client = FeedbackFace.new(account_id: "custom_account")
1919
assert_equal "custom_account", client.account_id
2020
end
@@ -35,11 +35,5 @@ def test_client_raises_error_without_api_key
3535
end
3636
end
3737

38-
def test_create_customer_raises_error_without_account_id
39-
client = FeedbackFace.new # account_id will be nil
4038

41-
assert_raises ArgumentError do
42-
client.create_customer({email: "test@example.com"})
43-
end
44-
end
4539
end

0 commit comments

Comments
 (0)