shortly 0.3.3 → 0.3.4

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,15 @@
1
+ ---
2
+ !binary "U0hBMQ==":
3
+ metadata.gz: !binary |-
4
+ MTllNWNlYzU3MGM3YzZlM2U4MzAxMGVkNTUzZmQxZmVlN2MxZWY1OQ==
5
+ data.tar.gz: !binary |-
6
+ ZTJkZWEwZTFkOGE3NzhmZTViZDgwZjM3MTZhZTkxMTQ2NzdiMDM5MA==
7
+ !binary "U0hBNTEy":
8
+ metadata.gz: !binary |-
9
+ MmM0ZDY0ODhkMjE5N2E2Mzg5NjJiMmEwOWFjYmNjYWZiZDA5NTk3ZmQ5MGU5
10
+ NDVjZGYxNTljYzgxODA1MTYxNDY4OTBhY2M2NmViNGY5ODE4NDFiMGM5Zjk0
11
+ OTMxZTAwMTE2MGI5YzE0ZjRiN2VlZDZhYjlkY2YwZWQ3YjhkYmI=
12
+ data.tar.gz: !binary |-
13
+ MmFkY2NmY2MyZjI5ZmNkNjNkYWYzOWMxNjRhNzIzMzk0MWQ4NzEzNzgxMjc3
14
+ MWQyOTUxNjFlNjEwZDI5MWEyYzFmZWQ5ZWFlZjNiNDNmNDFlYWE4MWM2NWRk
15
+ OGM3MmUzY2ZmZDBlYjdkMDllNjRmYmYxNWNmNjhiMjg2MDk5MDI=
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.3.3
1
+ 0.3.4
@@ -33,7 +33,7 @@ module Shortly
33
33
  validate_uri!(url)
34
34
  options = {:format => "json", :url => url}.merge(options)
35
35
  response = get("/create.php", get_params(options))
36
- OpenStruct.new(response)
36
+ OpenStruct.new(JSON.parse(response.body))
37
37
  end
38
38
 
39
39
  end
@@ -344,7 +344,7 @@ describe "Shortly" do
344
344
  end
345
345
 
346
346
  it "should respond to resitered class variable" do
347
- Shortly::Client.class_variables.should include "@@registered"
347
+ Shortly::Client.class_variables.should include :"@@registered"
348
348
  end
349
349
 
350
350
  it "should respond to register/valid_uri? and registered methods" do
metadata CHANGED
@@ -1,120 +1,52 @@
1
- --- !ruby/object:Gem::Specification
1
+ --- !ruby/object:Gem::Specification
2
2
  name: shortly
3
- version: !ruby/object:Gem::Version
4
- hash: 21
5
- prerelease:
6
- segments:
7
- - 0
8
- - 3
9
- - 3
10
- version: 0.3.3
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.3.4
11
5
  platform: ruby
12
- authors:
6
+ authors:
13
7
  - Bagwan Pankaj
14
8
  autorequire:
15
9
  bindir: bin
16
10
  cert_chain: []
17
-
18
- date: 2011-01-26 00:00:00 Z
19
- dependencies:
20
- - !ruby/object:Gem::Dependency
11
+ date: 2014-03-21 00:00:00.000000000 Z
12
+ dependencies:
13
+ - !ruby/object:Gem::Dependency
21
14
  name: httparty
22
- prerelease: false
23
- requirement: &id001 !ruby/object:Gem::Requirement
24
- none: false
25
- requirements:
26
- - - ">="
27
- - !ruby/object:Gem::Version
28
- hash: 3
29
- segments:
30
- - 0
31
- version: "0"
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - ! '>='
18
+ - !ruby/object:Gem::Version
19
+ version: '0'
32
20
  type: :runtime
33
- version_requirements: *id001
34
- - !ruby/object:Gem::Dependency
35
- name: json
36
21
  prerelease: false
37
- requirement: &id002 !ruby/object:Gem::Requirement
38
- none: false
39
- requirements:
40
- - - ">="
41
- - !ruby/object:Gem::Version
42
- hash: 3
43
- segments:
44
- - 0
45
- version: "0"
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: json
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - ! '>='
32
+ - !ruby/object:Gem::Version
33
+ version: '0'
46
34
  type: :runtime
47
- version_requirements: *id002
48
- - !ruby/object:Gem::Dependency
49
- name: rspec
50
- prerelease: false
51
- requirement: &id003 !ruby/object:Gem::Requirement
52
- none: false
53
- requirements:
54
- - - ~>
55
- - !ruby/object:Gem::Version
56
- hash: 11
57
- segments:
58
- - 2
59
- - 1
60
- - 0
61
- version: 2.1.0
62
- type: :development
63
- version_requirements: *id003
64
- - !ruby/object:Gem::Dependency
65
- name: bundler
66
- prerelease: false
67
- requirement: &id004 !ruby/object:Gem::Requirement
68
- none: false
69
- requirements:
70
- - - ~>
71
- - !ruby/object:Gem::Version
72
- hash: 23
73
- segments:
74
- - 1
75
- - 0
76
- - 0
77
- version: 1.0.0
78
- type: :development
79
- version_requirements: *id004
80
- - !ruby/object:Gem::Dependency
81
- name: rcov
82
- prerelease: false
83
- requirement: &id005 !ruby/object:Gem::Requirement
84
- none: false
85
- requirements:
86
- - - ">="
87
- - !ruby/object:Gem::Version
88
- hash: 3
89
- segments:
90
- - 0
91
- version: "0"
92
- type: :development
93
- version_requirements: *id005
94
- - !ruby/object:Gem::Dependency
95
- name: fakeweb
96
35
  prerelease: false
97
- requirement: &id006 !ruby/object:Gem::Requirement
98
- none: false
99
- requirements:
100
- - - ">="
101
- - !ruby/object:Gem::Version
102
- hash: 3
103
- segments:
104
- - 0
105
- version: "0"
106
- type: :development
107
- version_requirements: *id006
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - ! '>='
39
+ - !ruby/object:Gem::Version
40
+ version: '0'
108
41
  description: Ruby Wrapper for different Url Shortner Services Ruby Wrapper
109
42
  email: bagwanpankaj@gmail.com
110
- executables:
43
+ executables:
111
44
  - shortly
112
45
  extensions: []
113
-
114
- extra_rdoc_files:
46
+ extra_rdoc_files:
115
47
  - LICENSE.txt
116
48
  - README.markdown
117
- files:
49
+ files:
118
50
  - LICENSE.txt
119
51
  - VERSION
120
52
  - bin/shortly
@@ -135,40 +67,30 @@ files:
135
67
  - spec/spec_helper.rb
136
68
  - spec/support/fakeweb_stub.rb
137
69
  homepage: http://github.com/bagwanpankaj/shortly
138
- licenses:
70
+ licenses:
139
71
  - MIT
72
+ metadata: {}
140
73
  post_install_message:
141
74
  rdoc_options: []
142
-
143
- require_paths:
75
+ require_paths:
144
76
  - lib
145
- required_ruby_version: !ruby/object:Gem::Requirement
146
- none: false
147
- requirements:
148
- - - ">="
149
- - !ruby/object:Gem::Version
150
- hash: 3
151
- segments:
152
- - 0
153
- version: "0"
154
- required_rubygems_version: !ruby/object:Gem::Requirement
155
- none: false
156
- requirements:
157
- - - ">="
158
- - !ruby/object:Gem::Version
159
- hash: 3
160
- segments:
161
- - 0
162
- version: "0"
77
+ required_ruby_version: !ruby/object:Gem::Requirement
78
+ requirements:
79
+ - - ! '>='
80
+ - !ruby/object:Gem::Version
81
+ version: '0'
82
+ required_rubygems_version: !ruby/object:Gem::Requirement
83
+ requirements:
84
+ - - ! '>='
85
+ - !ruby/object:Gem::Version
86
+ version: '0'
163
87
  requirements: []
164
-
165
88
  rubyforge_project:
166
- rubygems_version: 1.8.10
89
+ rubygems_version: 2.0.5
167
90
  signing_key:
168
91
  specification_version: 3
169
92
  summary: Url Shortner Services Ruby Wrapper
170
- test_files:
93
+ test_files:
171
94
  - spec/shortly_spec.rb
172
95
  - spec/spec_helper.rb
173
96
  - spec/support/fakeweb_stub.rb
174
- has_rdoc: