ragios-client 0.0.1 → 0.0.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/Gemfile +1 -0
- data/Gemfile.lock +8 -0
- data/README.rdoc +2 -2
- data/Rakefile +8 -0
- data/VERSION +1 -1
- data/ragios-client.gemspec +70 -0
- data/spec/ragios-client_spec.rb +10 -2
- metadata +20 -3
data/Gemfile
CHANGED
data/Gemfile.lock
CHANGED
@@ -10,6 +10,7 @@ GEM
|
|
10
10
|
addressable (2.3.5)
|
11
11
|
atomic (1.1.14)
|
12
12
|
builder (3.2.2)
|
13
|
+
coderay (1.1.0)
|
13
14
|
docile (1.1.1)
|
14
15
|
faraday (0.8.8)
|
15
16
|
multipart-post (~> 1.2.0)
|
@@ -37,6 +38,7 @@ GEM
|
|
37
38
|
json (1.8.1)
|
38
39
|
jwt (0.1.8)
|
39
40
|
multi_json (>= 1.5)
|
41
|
+
method_source (0.8.2)
|
40
42
|
mime-types (1.25.1)
|
41
43
|
minitest (4.7.5)
|
42
44
|
multi_json (1.8.2)
|
@@ -50,6 +52,10 @@ GEM
|
|
50
52
|
multi_json (~> 1.0)
|
51
53
|
multi_xml (~> 0.5)
|
52
54
|
rack (~> 1.2)
|
55
|
+
pry (0.9.12.4)
|
56
|
+
coderay (~> 1.0)
|
57
|
+
method_source (~> 0.8)
|
58
|
+
slop (~> 3.4)
|
53
59
|
rack (1.5.2)
|
54
60
|
rake (10.1.0)
|
55
61
|
rdoc (3.12.2)
|
@@ -67,6 +73,7 @@ GEM
|
|
67
73
|
multi_json
|
68
74
|
simplecov-html (~> 0.8.0)
|
69
75
|
simplecov-html (0.8.0)
|
76
|
+
slop (3.4.7)
|
70
77
|
thread_safe (0.1.3)
|
71
78
|
atomic
|
72
79
|
tzinfo (0.3.38)
|
@@ -78,6 +85,7 @@ PLATFORMS
|
|
78
85
|
DEPENDENCIES
|
79
86
|
bundler (~> 1.0)
|
80
87
|
jeweler (~> 1.8.7)
|
88
|
+
pry
|
81
89
|
rdoc (~> 3.12)
|
82
90
|
rest-client
|
83
91
|
shoulda
|
data/README.rdoc
CHANGED
data/Rakefile
CHANGED
@@ -40,6 +40,14 @@ end
|
|
40
40
|
# test.rcov_opts << '--exclude "gems/*"'
|
41
41
|
#end
|
42
42
|
|
43
|
+
task :repl do
|
44
|
+
ragios_client_file = File.expand_path(File.join(File.dirname(__FILE__), '..', 'ragios-client/lib/ragios-client'))
|
45
|
+
irb = "bundle exec pry -r #{ragios_client_file}"
|
46
|
+
sh irb
|
47
|
+
end
|
48
|
+
|
49
|
+
task :r => :repl
|
50
|
+
|
43
51
|
task :default => :test
|
44
52
|
|
45
53
|
require 'rdoc/task'
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.0.
|
1
|
+
0.0.2
|
@@ -0,0 +1,70 @@
|
|
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 -*-
|
5
|
+
|
6
|
+
Gem::Specification.new do |s|
|
7
|
+
s.name = "ragios-client"
|
8
|
+
s.version = "0.0.2"
|
9
|
+
|
10
|
+
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
11
|
+
s.authors = ["obi-a"]
|
12
|
+
s.date = "2014-04-05"
|
13
|
+
s.description = "ruby client for ragios"
|
14
|
+
s.email = "obioraakubue@yahoo.com"
|
15
|
+
s.extra_rdoc_files = [
|
16
|
+
"LICENSE.txt",
|
17
|
+
"README.rdoc"
|
18
|
+
]
|
19
|
+
s.files = [
|
20
|
+
".document",
|
21
|
+
"Gemfile",
|
22
|
+
"Gemfile.lock",
|
23
|
+
"LICENSE.txt",
|
24
|
+
"README.rdoc",
|
25
|
+
"Rakefile",
|
26
|
+
"VERSION",
|
27
|
+
"lib/ragios-client.rb",
|
28
|
+
"ragios-client.gemspec",
|
29
|
+
"spec/ragios-client_spec.rb"
|
30
|
+
]
|
31
|
+
s.homepage = "http://github.com/obi-a/ragios-client"
|
32
|
+
s.licenses = ["MIT"]
|
33
|
+
s.require_paths = ["lib"]
|
34
|
+
s.rubygems_version = "1.8.24"
|
35
|
+
s.summary = "Ruby client for ragios"
|
36
|
+
|
37
|
+
if s.respond_to? :specification_version then
|
38
|
+
s.specification_version = 3
|
39
|
+
|
40
|
+
if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
|
41
|
+
s.add_runtime_dependency(%q<rest-client>, [">= 0"])
|
42
|
+
s.add_runtime_dependency(%q<yajl-ruby>, [">= 0"])
|
43
|
+
s.add_development_dependency(%q<pry>, [">= 0"])
|
44
|
+
s.add_development_dependency(%q<shoulda>, [">= 0"])
|
45
|
+
s.add_development_dependency(%q<rdoc>, ["~> 3.12"])
|
46
|
+
s.add_development_dependency(%q<bundler>, ["~> 1.0"])
|
47
|
+
s.add_development_dependency(%q<jeweler>, ["~> 1.8.7"])
|
48
|
+
s.add_development_dependency(%q<simplecov>, [">= 0"])
|
49
|
+
else
|
50
|
+
s.add_dependency(%q<rest-client>, [">= 0"])
|
51
|
+
s.add_dependency(%q<yajl-ruby>, [">= 0"])
|
52
|
+
s.add_dependency(%q<pry>, [">= 0"])
|
53
|
+
s.add_dependency(%q<shoulda>, [">= 0"])
|
54
|
+
s.add_dependency(%q<rdoc>, ["~> 3.12"])
|
55
|
+
s.add_dependency(%q<bundler>, ["~> 1.0"])
|
56
|
+
s.add_dependency(%q<jeweler>, ["~> 1.8.7"])
|
57
|
+
s.add_dependency(%q<simplecov>, [">= 0"])
|
58
|
+
end
|
59
|
+
else
|
60
|
+
s.add_dependency(%q<rest-client>, [">= 0"])
|
61
|
+
s.add_dependency(%q<yajl-ruby>, [">= 0"])
|
62
|
+
s.add_dependency(%q<pry>, [">= 0"])
|
63
|
+
s.add_dependency(%q<shoulda>, [">= 0"])
|
64
|
+
s.add_dependency(%q<rdoc>, ["~> 3.12"])
|
65
|
+
s.add_dependency(%q<bundler>, ["~> 1.0"])
|
66
|
+
s.add_dependency(%q<jeweler>, ["~> 1.8.7"])
|
67
|
+
s.add_dependency(%q<simplecov>, [">= 0"])
|
68
|
+
end
|
69
|
+
end
|
70
|
+
|
data/spec/ragios-client_spec.rb
CHANGED
@@ -372,8 +372,8 @@ describe "Ragios Client" do
|
|
372
372
|
end
|
373
373
|
|
374
374
|
it "accepts new default address" do
|
375
|
-
ragios_client = Ragios::Client.new(address: '
|
376
|
-
ragios_client.address.should == "
|
375
|
+
ragios_client = Ragios::Client.new(address: 'https://mysite.com', port: '6802')
|
376
|
+
ragios_client.address.should == "https://mysite.com"
|
377
377
|
ragios_client.port.should == "6802"
|
378
378
|
ragios_client.username.should == ""
|
379
379
|
ragios_client.password.should == ""
|
@@ -387,4 +387,12 @@ describe "Ragios Client" do
|
|
387
387
|
ragios_client.password.should == "abc123"
|
388
388
|
end
|
389
389
|
|
390
|
+
it "accepts new default settings" do
|
391
|
+
ragios_client = Ragios::Client.new(username: 'superadmin', password: 'abc123', address: 'https://mysite.com', port: '6802')
|
392
|
+
ragios_client.address.should == "https://mysite.com"
|
393
|
+
ragios_client.port.should == "6802"
|
394
|
+
ragios_client.username.should == "superadmin"
|
395
|
+
ragios_client.password.should == "abc123"
|
396
|
+
end
|
397
|
+
|
390
398
|
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: ragios-client
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.2
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date:
|
12
|
+
date: 2014-04-05 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: rest-client
|
@@ -43,6 +43,22 @@ dependencies:
|
|
43
43
|
- - ! '>='
|
44
44
|
- !ruby/object:Gem::Version
|
45
45
|
version: '0'
|
46
|
+
- !ruby/object:Gem::Dependency
|
47
|
+
name: pry
|
48
|
+
requirement: !ruby/object:Gem::Requirement
|
49
|
+
none: false
|
50
|
+
requirements:
|
51
|
+
- - ! '>='
|
52
|
+
- !ruby/object:Gem::Version
|
53
|
+
version: '0'
|
54
|
+
type: :development
|
55
|
+
prerelease: false
|
56
|
+
version_requirements: !ruby/object:Gem::Requirement
|
57
|
+
none: false
|
58
|
+
requirements:
|
59
|
+
- - ! '>='
|
60
|
+
- !ruby/object:Gem::Version
|
61
|
+
version: '0'
|
46
62
|
- !ruby/object:Gem::Dependency
|
47
63
|
name: shoulda
|
48
64
|
requirement: !ruby/object:Gem::Requirement
|
@@ -139,6 +155,7 @@ files:
|
|
139
155
|
- Rakefile
|
140
156
|
- VERSION
|
141
157
|
- lib/ragios-client.rb
|
158
|
+
- ragios-client.gemspec
|
142
159
|
- spec/ragios-client_spec.rb
|
143
160
|
homepage: http://github.com/obi-a/ragios-client
|
144
161
|
licenses:
|
@@ -155,7 +172,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
155
172
|
version: '0'
|
156
173
|
segments:
|
157
174
|
- 0
|
158
|
-
hash:
|
175
|
+
hash: 1863115322660695517
|
159
176
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
160
177
|
none: false
|
161
178
|
requirements:
|