illyan_client 1.0.2 → 2.0.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: 8686da423c492ef5f93577ccc6b96bcf017e4e31
4
+ data.tar.gz: b7697a893ed3a875258ea17c559f2d1a5bd64b8f
5
+ SHA512:
6
+ metadata.gz: 7ec7dfff24c6d1996c4758229b5e9bbb0ae1d209363afa16d838c86dc082305cf995786844862ff126c17be66ed668294fbc963f9ae78c257d97f0c906ccf133
7
+ data.tar.gz: 1a115b1ef2e762c96dc61856ec713d4c423f80ba91589d3afee0fe4d455eccf539754d693d8dd1b0979da11e38b696916d4887a8e709549df384913f19cf0187
@@ -0,0 +1,9 @@
1
+ /.bundle/
2
+ /.yardoc
3
+ /Gemfile.lock
4
+ /_yardoc/
5
+ /coverage/
6
+ /doc/
7
+ /pkg/
8
+ /spec/reports/
9
+ /tmp/
@@ -0,0 +1,4 @@
1
+ language: ruby
2
+ rvm:
3
+ - 2.2.2
4
+ before_install: gem install bundler -v 1.10.5
@@ -0,0 +1,13 @@
1
+ # Contributor Code of Conduct
2
+
3
+ As contributors and maintainers of this project, we pledge to respect all people who contribute through reporting issues, posting feature requests, updating documentation, submitting pull requests or patches, and other activities.
4
+
5
+ We are committed to making participation in this project a harassment-free experience for everyone, regardless of level of experience, gender, gender identity and expression, sexual orientation, disability, personal appearance, body size, race, ethnicity, age, or religion.
6
+
7
+ Examples of unacceptable behavior by participants include the use of sexual language or imagery, derogatory comments or personal attacks, trolling, public or private harassment, insults, or other unprofessional conduct.
8
+
9
+ Project maintainers have the right and responsibility to remove, edit, or reject comments, commits, code, wiki edits, issues, and other contributions that are not aligned to this Code of Conduct. Project maintainers who do not follow the Code of Conduct may be removed from the project team.
10
+
11
+ Instances of abusive, harassing, or otherwise unacceptable behavior may be reported by opening an issue or contacting one or more of the project maintainers.
12
+
13
+ This Code of Conduct is adapted from the [Contributor Covenant](http://contributor-covenant.org), version 1.0.0, available at [http://contributor-covenant.org/version/1/0/0/](http://contributor-covenant.org/version/1/0/0/)
data/Gemfile CHANGED
@@ -1,13 +1,4 @@
1
- source "http://rubygems.org"
2
- # Add dependencies required to use your gem here.
3
- # Example:
4
- # gem "activesupport", ">= 2.3.5"
1
+ source 'https://rubygems.org'
5
2
 
6
- # Add dependencies to develop your gem here.
7
- # Include everything needed to run rake, tests, features, etc.
8
- group :development do
9
- gem "shoulda", ">= 0"
10
- gem "bundler", "~> 1.0.0"
11
- gem "jeweler", "~> 1.5.2"
12
- gem "rcov", ">= 0"
13
- end
3
+ # Specify your gem's dependencies in illyan_client.gemspec
4
+ gemspec
@@ -1,20 +1,53 @@
1
+ PATH
2
+ remote: .
3
+ specs:
4
+ illyan_client (2.0.0)
5
+ activemodel
6
+ faraday
7
+ faraday_middleware
8
+
1
9
  GEM
2
- remote: http://rubygems.org/
10
+ remote: https://rubygems.org/
3
11
  specs:
4
- git (1.2.5)
5
- jeweler (1.5.2)
6
- bundler (~> 1.0.0)
7
- git (>= 1.2.5)
8
- rake
9
- rake (0.8.7)
10
- rcov (0.9.9)
11
- shoulda (2.11.3)
12
+ activemodel (4.2.3)
13
+ activesupport (= 4.2.3)
14
+ builder (~> 3.1)
15
+ activesupport (4.2.3)
16
+ i18n (~> 0.7)
17
+ json (~> 1.7, >= 1.7.7)
18
+ minitest (~> 5.1)
19
+ thread_safe (~> 0.3, >= 0.3.4)
20
+ tzinfo (~> 1.1)
21
+ builder (3.2.2)
22
+ coderay (1.1.0)
23
+ faraday (0.9.1)
24
+ multipart-post (>= 1.2, < 3)
25
+ faraday_middleware (0.10.0)
26
+ faraday (>= 0.7.4, < 0.10)
27
+ i18n (0.7.0)
28
+ json (1.8.3)
29
+ method_source (0.8.2)
30
+ minitest (5.8.0)
31
+ multipart-post (2.0.0)
32
+ pry (0.10.1)
33
+ coderay (~> 1.1.0)
34
+ method_source (~> 0.8.1)
35
+ slop (~> 3.4)
36
+ rake (10.4.2)
37
+ slop (3.6.0)
38
+ thread_safe (0.3.5)
39
+ tzinfo (1.2.2)
40
+ thread_safe (~> 0.1)
12
41
 
13
42
  PLATFORMS
14
43
  ruby
15
44
 
16
45
  DEPENDENCIES
17
- bundler (~> 1.0.0)
18
- jeweler (~> 1.5.2)
19
- rcov
20
- shoulda
46
+ bundler (~> 1.10)
47
+ illyan_client!
48
+ minitest
49
+ pry
50
+ rake (~> 10.0)
51
+
52
+ BUNDLED WITH
53
+ 1.10.5
@@ -1,20 +1,21 @@
1
- Copyright (c) 2011 Nat Budin
1
+ The MIT License (MIT)
2
2
 
3
- Permission is hereby granted, free of charge, to any person obtaining
4
- a copy of this software and associated documentation files (the
5
- "Software"), to deal in the Software without restriction, including
6
- without limitation the rights to use, copy, modify, merge, publish,
7
- distribute, sublicense, and/or sell copies of the Software, and to
8
- permit persons to whom the Software is furnished to do so, subject to
9
- the following conditions:
3
+ Copyright (c) 2015 Nat Budin
10
4
 
11
- The above copyright notice and this permission notice shall be
12
- included in all copies or substantial portions of the Software.
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
13
11
 
14
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
15
- EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
16
- MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
17
- NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
18
- LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
19
- OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
20
- WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
12
+ The above copyright notice and this permission notice shall be included in
13
+ all copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
21
+ THE SOFTWARE.
@@ -0,0 +1,35 @@
1
+ # IllyanClient
2
+
3
+ REST API client for Illyan
4
+
5
+ ## Installation
6
+
7
+ Add this line to your application's Gemfile:
8
+
9
+ ```ruby
10
+ gem 'illyan_client'
11
+ ```
12
+
13
+ And then execute:
14
+
15
+ $ bundle
16
+
17
+ Or install it yourself as:
18
+
19
+ $ gem install illyan_client
20
+
21
+ ## Development
22
+
23
+ After checking out the repo, run `bin/setup` to install dependencies. Then, run `rake test` to run the tests. You can also run `bin/console` for an interactive prompt that will allow you to experiment.
24
+
25
+ To install this gem onto your local machine, run `bundle exec rake install`. To release a new version, update the version number in `version.rb`, and then run `bundle exec rake release`, which will create a git tag for the version, push git commits and tags, and push the `.gem` file to [rubygems.org](https://rubygems.org).
26
+
27
+ ## Contributing
28
+
29
+ Bug reports and pull requests are welcome on GitHub at https://github.com/[USERNAME]/illyan_client. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the [Contributor Covenant](contributor-covenant.org) code of conduct.
30
+
31
+
32
+ ## License
33
+
34
+ The gem is available as open source under the terms of the [MIT License](http://opensource.org/licenses/MIT).
35
+
data/Rakefile CHANGED
@@ -1,54 +1,10 @@
1
- require 'rubygems'
2
- require 'bundler'
3
- begin
4
- Bundler.setup(:default, :development)
5
- rescue Bundler::BundlerError => e
6
- $stderr.puts e.message
7
- $stderr.puts "Run `bundle install` to install missing gems"
8
- exit e.status_code
9
- end
10
- require 'rake'
11
-
12
- require 'jeweler'
13
- Jeweler::Tasks.new do |gem|
14
- # gem is a Gem::Specification... see http://docs.rubygems.org/read/chapter/20 for more options
15
- gem.name = "illyan_client"
16
- gem.homepage = "http://github.com/nbudin/illyan_client"
17
- gem.license = "MIT"
18
- gem.summary = %Q{REST API client for Illyan}
19
- gem.email = "natbudin@gmail.com"
20
- gem.authors = ["Nat Budin"]
21
-
22
- gem.add_runtime_dependency 'activeresource'
23
- # Include your dependencies below. Runtime dependencies are required when using your gem,
24
- # and development dependencies are only needed for development (ie running rake tasks, tests, etc)
25
- # gem.add_runtime_dependency 'jabber4r', '> 0.1'
26
- # gem.add_development_dependency 'rspec', '> 1.2.3'
27
- end
28
- Jeweler::RubygemsDotOrgTasks.new
29
-
30
- require 'rake/testtask'
31
- Rake::TestTask.new(:test) do |test|
32
- test.libs << 'lib' << 'test'
33
- test.pattern = 'test/**/test_*.rb'
34
- test.verbose = true
35
- end
1
+ require "bundler/gem_tasks"
2
+ require "rake/testtask"
36
3
 
37
- require 'rcov/rcovtask'
38
- Rcov::RcovTask.new do |test|
39
- test.libs << 'test'
40
- test.pattern = 'test/**/test_*.rb'
41
- test.verbose = true
4
+ Rake::TestTask.new(:test) do |t|
5
+ t.libs << "test"
6
+ t.libs << "lib"
7
+ t.test_files = FileList['test/**/*_test.rb']
42
8
  end
43
9
 
44
10
  task :default => :test
45
-
46
- require 'rake/rdoctask'
47
- Rake::RDocTask.new do |rdoc|
48
- version = File.exist?('VERSION') ? File.read('VERSION') : ""
49
-
50
- rdoc.rdoc_dir = 'rdoc'
51
- rdoc.title = "illyan_client #{version}"
52
- rdoc.rdoc_files.include('README*')
53
- rdoc.rdoc_files.include('lib/**/*.rb')
54
- end
@@ -1,65 +1,29 @@
1
- # Generated by jeweler
2
- # DO NOT EDIT THIS FILE DIRECTLY
3
- # Instead, edit Jeweler::Tasks in Rakefile, and run 'rake gemspec'
4
- # -*- encoding: utf-8 -*-
1
+ # coding: utf-8
2
+ lib = File.expand_path('../lib', __FILE__)
3
+ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
4
+ require 'illyan_client/version'
5
5
 
6
- Gem::Specification.new do |s|
7
- s.name = %q{illyan_client}
8
- s.version = "1.0.2"
6
+ Gem::Specification.new do |spec|
7
+ spec.name = "illyan_client"
8
+ spec.version = IllyanClient::VERSION
9
+ spec.authors = ["Nat Budin"]
10
+ spec.email = ["natbudin@gmail.com"]
9
11
 
10
- s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
- s.authors = ["Nat Budin"]
12
- s.date = %q{2011-05-16}
13
- s.email = %q{natbudin@gmail.com}
14
- s.extra_rdoc_files = [
15
- "LICENSE.txt",
16
- "README.rdoc"
17
- ]
18
- s.files = [
19
- ".document",
20
- "Gemfile",
21
- "Gemfile.lock",
22
- "LICENSE.txt",
23
- "README.rdoc",
24
- "Rakefile",
25
- "VERSION",
26
- "illyan_client.gemspec",
27
- "lib/illyan_client.rb",
28
- "test/helper.rb",
29
- "test/test_illyan_client.rb"
30
- ]
31
- s.homepage = %q{http://github.com/nbudin/illyan_client}
32
- s.licenses = ["MIT"]
33
- s.require_paths = ["lib"]
34
- s.rubygems_version = %q{1.5.0}
35
- s.summary = %q{REST API client for Illyan}
36
- s.test_files = [
37
- "test/helper.rb",
38
- "test/test_illyan_client.rb"
39
- ]
12
+ spec.summary = %q{REST API client for Illyan}
13
+ spec.homepage = "https://github.com/nbudin/illyan_client"
14
+ spec.license = "MIT"
40
15
 
41
- if s.respond_to? :specification_version then
42
- s.specification_version = 3
16
+ spec.files = `git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) }
17
+ spec.bindir = "exe"
18
+ spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
19
+ spec.require_paths = ["lib"]
43
20
 
44
- if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
45
- s.add_development_dependency(%q<shoulda>, [">= 0"])
46
- s.add_development_dependency(%q<bundler>, ["~> 1.0.0"])
47
- s.add_development_dependency(%q<jeweler>, ["~> 1.5.2"])
48
- s.add_development_dependency(%q<rcov>, [">= 0"])
49
- s.add_runtime_dependency(%q<activeresource>, [">= 0"])
50
- else
51
- s.add_dependency(%q<shoulda>, [">= 0"])
52
- s.add_dependency(%q<bundler>, ["~> 1.0.0"])
53
- s.add_dependency(%q<jeweler>, ["~> 1.5.2"])
54
- s.add_dependency(%q<rcov>, [">= 0"])
55
- s.add_dependency(%q<activeresource>, [">= 0"])
56
- end
57
- else
58
- s.add_dependency(%q<shoulda>, [">= 0"])
59
- s.add_dependency(%q<bundler>, ["~> 1.0.0"])
60
- s.add_dependency(%q<jeweler>, ["~> 1.5.2"])
61
- s.add_dependency(%q<rcov>, [">= 0"])
62
- s.add_dependency(%q<activeresource>, [">= 0"])
63
- end
64
- end
21
+ spec.add_dependency "faraday"
22
+ spec.add_dependency "faraday_middleware"
23
+ spec.add_dependency "activemodel"
65
24
 
25
+ spec.add_development_dependency "bundler", "~> 1.10"
26
+ spec.add_development_dependency "rake", "~> 10.0"
27
+ spec.add_development_dependency "minitest"
28
+ spec.add_development_dependency "pry"
29
+ end
@@ -1,26 +1,23 @@
1
- require 'active_resource'
1
+ require "illyan_client/version"
2
+ require "illyan_client/client"
3
+ require "illyan_client/person"
2
4
 
3
5
  module IllyanClient
4
- mattr_reader :base_url
6
+ mattr_reader :base_url, :token
5
7
 
6
8
  def self.base_url=(url)
7
9
  @@base_url = url
8
- Person.site = "#{url}/admin"
9
- end
10
-
11
- def self.token
12
- Person.user
13
10
  end
14
11
 
15
12
  def self.token=(token)
16
- Person.user = token
13
+ @@token = token
17
14
  end
18
15
 
19
16
  def self.configure!
20
17
  yield IllyanClient
21
18
  end
22
19
 
23
- class Person < ActiveResource::Base
24
- self.format = :json
20
+ def self.default_client
21
+ @default_client ||= IllyanClient::Client.new
25
22
  end
26
23
  end
@@ -0,0 +1,29 @@
1
+ require 'faraday'
2
+ require 'faraday_middleware'
3
+
4
+ module IllyanClient
5
+ class Client
6
+ attr_reader :base_url, :token
7
+
8
+ def initialize(base_url: nil, token: nil)
9
+ @base_url = base_url || IllyanClient.base_url
10
+ @token = token || IllyanClient.token
11
+ end
12
+
13
+ def connection
14
+ @connection ||= Faraday.new(url: base_url, headers: {'Accept' => 'application/json'}) do |conn|
15
+ conn.request :basic_auth, token, ''
16
+ conn.request :json
17
+
18
+ conn.response :json
19
+ conn.response :logger
20
+
21
+ conn.adapter Faraday.default_adapter
22
+ end
23
+ end
24
+
25
+ def create_person(person)
26
+ connection.post "/admin/people", { person: person.serializable_hash }
27
+ end
28
+ end
29
+ end
@@ -0,0 +1,26 @@
1
+ require 'active_model'
2
+
3
+ module IllyanClient
4
+ class Person
5
+ include ActiveModel::Model
6
+ include ActiveModel::Serializers::JSON
7
+
8
+ attr_accessor :id, :firstname, :lastname, :gender, :birthdate, :email, :admin
9
+
10
+ def persisted?
11
+ id
12
+ end
13
+
14
+ def attributes
15
+ {
16
+ id: id,
17
+ firstname: firstname,
18
+ lastname: lastname,
19
+ gender: gender,
20
+ birthdate: birthdate,
21
+ email: email,
22
+ admin: admin
23
+ }
24
+ end
25
+ end
26
+ end
@@ -0,0 +1,3 @@
1
+ module IllyanClient
2
+ VERSION = "2.0.0"
3
+ end
metadata CHANGED
@@ -1,152 +1,157 @@
1
- --- !ruby/object:Gem::Specification
1
+ --- !ruby/object:Gem::Specification
2
2
  name: illyan_client
3
- version: !ruby/object:Gem::Version
4
- hash: 19
5
- prerelease:
6
- segments:
7
- - 1
8
- - 0
9
- - 2
10
- version: 1.0.2
3
+ version: !ruby/object:Gem::Version
4
+ version: 2.0.0
11
5
  platform: ruby
12
- authors:
6
+ authors:
13
7
  - Nat Budin
14
8
  autorequire:
15
- bindir: bin
9
+ bindir: exe
16
10
  cert_chain: []
17
-
18
- date: 2011-05-16 00:00:00 -04:00
19
- default_executable:
20
- dependencies:
21
- - !ruby/object:Gem::Dependency
22
- type: :development
23
- requirement: &id001 !ruby/object:Gem::Requirement
24
- none: false
25
- requirements:
11
+ date: 2015-09-21 00:00:00.000000000 Z
12
+ dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: faraday
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
26
17
  - - ">="
27
- - !ruby/object:Gem::Version
28
- hash: 3
29
- segments:
30
- - 0
31
- version: "0"
32
- name: shoulda
33
- version_requirements: *id001
18
+ - !ruby/object:Gem::Version
19
+ version: '0'
20
+ type: :runtime
34
21
  prerelease: false
35
- - !ruby/object:Gem::Dependency
36
- type: :development
37
- requirement: &id002 !ruby/object:Gem::Requirement
38
- none: false
39
- requirements:
40
- - - ~>
41
- - !ruby/object:Gem::Version
42
- hash: 23
43
- segments:
44
- - 1
45
- - 0
46
- - 0
47
- version: 1.0.0
48
- name: bundler
49
- version_requirements: *id002
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - ">="
25
+ - !ruby/object:Gem::Version
26
+ version: '0'
27
+ - !ruby/object:Gem::Dependency
28
+ name: faraday_middleware
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - ">="
32
+ - !ruby/object:Gem::Version
33
+ version: '0'
34
+ type: :runtime
35
+ prerelease: false
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - ">="
39
+ - !ruby/object:Gem::Version
40
+ version: '0'
41
+ - !ruby/object:Gem::Dependency
42
+ name: activemodel
43
+ requirement: !ruby/object:Gem::Requirement
44
+ requirements:
45
+ - - ">="
46
+ - !ruby/object:Gem::Version
47
+ version: '0'
48
+ type: :runtime
50
49
  prerelease: false
51
- - !ruby/object:Gem::Dependency
50
+ version_requirements: !ruby/object:Gem::Requirement
51
+ requirements:
52
+ - - ">="
53
+ - !ruby/object:Gem::Version
54
+ version: '0'
55
+ - !ruby/object:Gem::Dependency
56
+ name: bundler
57
+ requirement: !ruby/object:Gem::Requirement
58
+ requirements:
59
+ - - "~>"
60
+ - !ruby/object:Gem::Version
61
+ version: '1.10'
52
62
  type: :development
53
- requirement: &id003 !ruby/object:Gem::Requirement
54
- none: false
55
- requirements:
56
- - - ~>
57
- - !ruby/object:Gem::Version
58
- hash: 7
59
- segments:
60
- - 1
61
- - 5
62
- - 2
63
- version: 1.5.2
64
- name: jeweler
65
- version_requirements: *id003
66
63
  prerelease: false
67
- - !ruby/object:Gem::Dependency
64
+ version_requirements: !ruby/object:Gem::Requirement
65
+ requirements:
66
+ - - "~>"
67
+ - !ruby/object:Gem::Version
68
+ version: '1.10'
69
+ - !ruby/object:Gem::Dependency
70
+ name: rake
71
+ requirement: !ruby/object:Gem::Requirement
72
+ requirements:
73
+ - - "~>"
74
+ - !ruby/object:Gem::Version
75
+ version: '10.0'
68
76
  type: :development
69
- requirement: &id004 !ruby/object:Gem::Requirement
70
- none: false
71
- requirements:
77
+ prerelease: false
78
+ version_requirements: !ruby/object:Gem::Requirement
79
+ requirements:
80
+ - - "~>"
81
+ - !ruby/object:Gem::Version
82
+ version: '10.0'
83
+ - !ruby/object:Gem::Dependency
84
+ name: minitest
85
+ requirement: !ruby/object:Gem::Requirement
86
+ requirements:
72
87
  - - ">="
73
- - !ruby/object:Gem::Version
74
- hash: 3
75
- segments:
76
- - 0
77
- version: "0"
78
- name: rcov
79
- version_requirements: *id004
88
+ - !ruby/object:Gem::Version
89
+ version: '0'
90
+ type: :development
80
91
  prerelease: false
81
- - !ruby/object:Gem::Dependency
82
- type: :runtime
83
- requirement: &id005 !ruby/object:Gem::Requirement
84
- none: false
85
- requirements:
92
+ version_requirements: !ruby/object:Gem::Requirement
93
+ requirements:
94
+ - - ">="
95
+ - !ruby/object:Gem::Version
96
+ version: '0'
97
+ - !ruby/object:Gem::Dependency
98
+ name: pry
99
+ requirement: !ruby/object:Gem::Requirement
100
+ requirements:
86
101
  - - ">="
87
- - !ruby/object:Gem::Version
88
- hash: 3
89
- segments:
90
- - 0
91
- version: "0"
92
- name: activeresource
93
- version_requirements: *id005
102
+ - !ruby/object:Gem::Version
103
+ version: '0'
104
+ type: :development
94
105
  prerelease: false
106
+ version_requirements: !ruby/object:Gem::Requirement
107
+ requirements:
108
+ - - ">="
109
+ - !ruby/object:Gem::Version
110
+ version: '0'
95
111
  description:
96
- email: natbudin@gmail.com
112
+ email:
113
+ - natbudin@gmail.com
97
114
  executables: []
98
-
99
115
  extensions: []
100
-
101
- extra_rdoc_files:
102
- - LICENSE.txt
103
- - README.rdoc
104
- files:
105
- - .document
116
+ extra_rdoc_files: []
117
+ files:
118
+ - ".document"
119
+ - ".gitignore"
120
+ - ".travis.yml"
121
+ - CODE_OF_CONDUCT.md
106
122
  - Gemfile
107
123
  - Gemfile.lock
108
124
  - LICENSE.txt
109
- - README.rdoc
125
+ - README.md
110
126
  - Rakefile
111
127
  - VERSION
112
128
  - illyan_client.gemspec
113
129
  - lib/illyan_client.rb
114
- - test/helper.rb
115
- - test/test_illyan_client.rb
116
- has_rdoc: true
117
- homepage: http://github.com/nbudin/illyan_client
118
- licenses:
130
+ - lib/illyan_client/client.rb
131
+ - lib/illyan_client/person.rb
132
+ - lib/illyan_client/version.rb
133
+ homepage: https://github.com/nbudin/illyan_client
134
+ licenses:
119
135
  - MIT
136
+ metadata: {}
120
137
  post_install_message:
121
138
  rdoc_options: []
122
-
123
- require_paths:
139
+ require_paths:
124
140
  - lib
125
- required_ruby_version: !ruby/object:Gem::Requirement
126
- none: false
127
- requirements:
141
+ required_ruby_version: !ruby/object:Gem::Requirement
142
+ requirements:
128
143
  - - ">="
129
- - !ruby/object:Gem::Version
130
- hash: 3
131
- segments:
132
- - 0
133
- version: "0"
134
- required_rubygems_version: !ruby/object:Gem::Requirement
135
- none: false
136
- requirements:
144
+ - !ruby/object:Gem::Version
145
+ version: '0'
146
+ required_rubygems_version: !ruby/object:Gem::Requirement
147
+ requirements:
137
148
  - - ">="
138
- - !ruby/object:Gem::Version
139
- hash: 3
140
- segments:
141
- - 0
142
- version: "0"
149
+ - !ruby/object:Gem::Version
150
+ version: '0'
143
151
  requirements: []
144
-
145
152
  rubyforge_project:
146
- rubygems_version: 1.5.0
153
+ rubygems_version: 2.4.5
147
154
  signing_key:
148
- specification_version: 3
155
+ specification_version: 4
149
156
  summary: REST API client for Illyan
150
- test_files:
151
- - test/helper.rb
152
- - test/test_illyan_client.rb
157
+ test_files: []
@@ -1,19 +0,0 @@
1
- = illyan_client
2
-
3
- Description goes here.
4
-
5
- == Contributing to illyan_client
6
-
7
- * Check out the latest master to make sure the feature hasn't been implemented or the bug hasn't been fixed yet
8
- * Check out the issue tracker to make sure someone already hasn't requested it and/or contributed it
9
- * Fork the project
10
- * Start a feature/bugfix branch
11
- * Commit and push until you are happy with your contribution
12
- * Make sure to add tests for it. This is important so I don't break it in a future version unintentionally.
13
- * Please try not to mess with the Rakefile, version, or history. If you want to have your own version, or is otherwise necessary, that is fine, but please isolate to its own commit so I can cherry-pick around it.
14
-
15
- == Copyright
16
-
17
- Copyright (c) 2011 Nat Budin. See LICENSE.txt for
18
- further details.
19
-
@@ -1,18 +0,0 @@
1
- require 'rubygems'
2
- require 'bundler'
3
- begin
4
- Bundler.setup(:default, :development)
5
- rescue Bundler::BundlerError => e
6
- $stderr.puts e.message
7
- $stderr.puts "Run `bundle install` to install missing gems"
8
- exit e.status_code
9
- end
10
- require 'test/unit'
11
- require 'shoulda'
12
-
13
- $LOAD_PATH.unshift(File.join(File.dirname(__FILE__), '..', 'lib'))
14
- $LOAD_PATH.unshift(File.dirname(__FILE__))
15
- require 'illyan_client'
16
-
17
- class Test::Unit::TestCase
18
- end
@@ -1,7 +0,0 @@
1
- require 'helper'
2
-
3
- class TestIllyanClient < Test::Unit::TestCase
4
- should "probably rename this file and start testing for real" do
5
- flunk "hey buddy, you should probably rename this file and start testing for real"
6
- end
7
- end