restfulie 1.1.0 → 1.1.1

Sign up to get free protection for your applications and to get access to all the features.
data/Gemfile CHANGED
@@ -2,21 +2,19 @@ source :gemcutter
2
2
 
3
3
  gemspec
4
4
 
5
- if RUBY_VERSION < "1.9"
6
- gem "ruby-debug"
7
- else
8
- gem "ruby-debug19", :require => "ruby-debug"
9
- end
10
-
11
5
  group :development do
12
6
  gem "yard"
13
7
  end
14
8
 
15
- group :test do
9
+ group :test do
16
10
  gem "rspec-rails", ">= 2.3.0"
17
- gem "rcov"
11
+ if RUBY_VERSION < "1.9"
12
+ gem "rcov"
13
+ else
14
+ gem "simplecov"
15
+ end
18
16
  gem "sinatra"
19
17
  gem "state_machine"
20
18
  gem "test-unit", "= 1.2.3"
21
19
  gem "fakeweb"
22
- end
20
+ end
data/Rakefile CHANGED
@@ -1,7 +1,8 @@
1
1
  require 'rubygems'
2
2
  require 'rubygems/specification'
3
3
  require 'rake'
4
- require 'rdoc/task'
4
+ require 'rake/gempackagetask'
5
+ require 'rake/rdoctask'
5
6
  require 'rspec'
6
7
  require 'rspec/core'
7
8
  require 'rspec/core/rake_task'
@@ -31,7 +31,7 @@ module Restfulie::Client::Feature
31
31
  # * <tt>headers (e.g. {'Cache-control' => 'no-cache'})</tt>
32
32
  #
33
33
  def with(headers)
34
- headers.merge!(headers)
34
+ self.headers.merge!(headers)
35
35
  self
36
36
  end
37
37
 
@@ -72,4 +72,4 @@ module Restfulie::Client::Feature
72
72
  end
73
73
 
74
74
  end
75
- end
75
+ end
@@ -2,7 +2,7 @@ module Restfulie
2
2
  module VERSION #:nodoc:
3
3
  MAJOR = 1
4
4
  MINOR = 1
5
- TINY = 0
5
+ TINY = 1
6
6
 
7
7
  STRING = [MAJOR, MINOR, TINY].join('.')
8
8
 
@@ -33,7 +33,7 @@ Gem::Specification.new do |s|
33
33
  s.add_dependency("nokogiri", [">= 1.4.2"])
34
34
  s.add_dependency("json_pure", [">= 1.2.4"])
35
35
  s.add_dependency("rack-conneg")
36
- s.add_dependency('hypertemplate', "~> 1.2.0")
36
+ s.add_dependency('hypertemplate', "~> 1.2.2")
37
37
  s.add_dependency('medie', "~> 1.0.0")
38
38
  s.add_dependency('respondie', "~> 0.9.0")
39
39
  end
@@ -1,4 +1,3 @@
1
1
  require 'rspec'
2
2
 
3
3
  require 'restfulie'
4
- require 'ruby-debug'
@@ -6,4 +6,9 @@ describe Restfulie do
6
6
  Restfulie.at('http://guilhermesilveira.wordpress.com/').should_not == (Restfulie.at('http://guilhermesilveira.wordpress.com/'))
7
7
  end
8
8
 
9
- end
9
+ it "should set headers when with options is given" do
10
+ response = Restfulie.at('http://google.com').with({'Service-Ticket' => 'foobar'})
11
+ response.headers.should == {'Service-Ticket' => 'foobar'}
12
+ end
13
+
14
+ end
metadata CHANGED
@@ -1,139 +1,135 @@
1
- --- !ruby/object:Gem::Specification
1
+ --- !ruby/object:Gem::Specification
2
2
  name: restfulie
3
- version: !ruby/object:Gem::Version
4
- hash: 19
3
+ version: !ruby/object:Gem::Version
4
+ version: 1.1.1
5
5
  prerelease:
6
- segments:
7
- - 1
8
- - 1
9
- - 0
10
- version: 1.1.0
11
6
  platform: ruby
12
- authors:
13
- - Guilherme Silveira, Caue Guerra, Luis Cipriani, Everton Ribeiro, George Guimaraes, Paulo Ahagon, and many more!
7
+ authors:
8
+ - Guilherme Silveira, Caue Guerra, Luis Cipriani, Everton Ribeiro, George Guimaraes,
9
+ Paulo Ahagon, and many more!
14
10
  autorequire:
15
11
  bindir: bin
16
12
  cert_chain: []
17
-
18
- date: 2011-11-09 00:00:00 Z
19
- dependencies:
20
- - !ruby/object:Gem::Dependency
13
+ date: 2012-07-05 00:00:00.000000000 Z
14
+ dependencies:
15
+ - !ruby/object:Gem::Dependency
21
16
  name: sqlite3-ruby
22
- prerelease: false
23
- requirement: &id001 !ruby/object:Gem::Requirement
17
+ requirement: !ruby/object:Gem::Requirement
24
18
  none: false
25
- requirements:
26
- - - ">="
27
- - !ruby/object:Gem::Version
28
- hash: 3
29
- segments:
30
- - 0
31
- version: "0"
19
+ requirements:
20
+ - - ! '>='
21
+ - !ruby/object:Gem::Version
22
+ version: '0'
32
23
  type: :development
33
- version_requirements: *id001
34
- - !ruby/object:Gem::Dependency
35
- name: nokogiri
36
24
  prerelease: false
37
- requirement: &id002 !ruby/object:Gem::Requirement
25
+ version_requirements: !ruby/object:Gem::Requirement
26
+ none: false
27
+ requirements:
28
+ - - ! '>='
29
+ - !ruby/object:Gem::Version
30
+ version: '0'
31
+ - !ruby/object:Gem::Dependency
32
+ name: nokogiri
33
+ requirement: !ruby/object:Gem::Requirement
38
34
  none: false
39
- requirements:
40
- - - ">="
41
- - !ruby/object:Gem::Version
42
- hash: 3
43
- segments:
44
- - 1
45
- - 4
46
- - 2
35
+ requirements:
36
+ - - ! '>='
37
+ - !ruby/object:Gem::Version
47
38
  version: 1.4.2
48
39
  type: :runtime
49
- version_requirements: *id002
50
- - !ruby/object:Gem::Dependency
51
- name: json_pure
52
40
  prerelease: false
53
- requirement: &id003 !ruby/object:Gem::Requirement
41
+ version_requirements: !ruby/object:Gem::Requirement
42
+ none: false
43
+ requirements:
44
+ - - ! '>='
45
+ - !ruby/object:Gem::Version
46
+ version: 1.4.2
47
+ - !ruby/object:Gem::Dependency
48
+ name: json_pure
49
+ requirement: !ruby/object:Gem::Requirement
54
50
  none: false
55
- requirements:
56
- - - ">="
57
- - !ruby/object:Gem::Version
58
- hash: 23
59
- segments:
60
- - 1
61
- - 2
62
- - 4
51
+ requirements:
52
+ - - ! '>='
53
+ - !ruby/object:Gem::Version
63
54
  version: 1.2.4
64
55
  type: :runtime
65
- version_requirements: *id003
66
- - !ruby/object:Gem::Dependency
67
- name: rack-conneg
68
56
  prerelease: false
69
- requirement: &id004 !ruby/object:Gem::Requirement
57
+ version_requirements: !ruby/object:Gem::Requirement
70
58
  none: false
71
- requirements:
72
- - - ">="
73
- - !ruby/object:Gem::Version
74
- hash: 3
75
- segments:
76
- - 0
77
- version: "0"
59
+ requirements:
60
+ - - ! '>='
61
+ - !ruby/object:Gem::Version
62
+ version: 1.2.4
63
+ - !ruby/object:Gem::Dependency
64
+ name: rack-conneg
65
+ requirement: !ruby/object:Gem::Requirement
66
+ none: false
67
+ requirements:
68
+ - - ! '>='
69
+ - !ruby/object:Gem::Version
70
+ version: '0'
78
71
  type: :runtime
79
- version_requirements: *id004
80
- - !ruby/object:Gem::Dependency
81
- name: hypertemplate
82
72
  prerelease: false
83
- requirement: &id005 !ruby/object:Gem::Requirement
73
+ version_requirements: !ruby/object:Gem::Requirement
74
+ none: false
75
+ requirements:
76
+ - - ! '>='
77
+ - !ruby/object:Gem::Version
78
+ version: '0'
79
+ - !ruby/object:Gem::Dependency
80
+ name: hypertemplate
81
+ requirement: !ruby/object:Gem::Requirement
84
82
  none: false
85
- requirements:
83
+ requirements:
86
84
  - - ~>
87
- - !ruby/object:Gem::Version
88
- hash: 31
89
- segments:
90
- - 1
91
- - 2
92
- - 0
93
- version: 1.2.0
85
+ - !ruby/object:Gem::Version
86
+ version: 1.2.2
94
87
  type: :runtime
95
- version_requirements: *id005
96
- - !ruby/object:Gem::Dependency
97
- name: medie
98
88
  prerelease: false
99
- requirement: &id006 !ruby/object:Gem::Requirement
89
+ version_requirements: !ruby/object:Gem::Requirement
100
90
  none: false
101
- requirements:
91
+ requirements:
102
92
  - - ~>
103
- - !ruby/object:Gem::Version
104
- hash: 23
105
- segments:
106
- - 1
107
- - 0
108
- - 0
93
+ - !ruby/object:Gem::Version
94
+ version: 1.2.2
95
+ - !ruby/object:Gem::Dependency
96
+ name: medie
97
+ requirement: !ruby/object:Gem::Requirement
98
+ none: false
99
+ requirements:
100
+ - - ~>
101
+ - !ruby/object:Gem::Version
109
102
  version: 1.0.0
110
103
  type: :runtime
111
- version_requirements: *id006
112
- - !ruby/object:Gem::Dependency
113
- name: respondie
114
104
  prerelease: false
115
- requirement: &id007 !ruby/object:Gem::Requirement
105
+ version_requirements: !ruby/object:Gem::Requirement
106
+ none: false
107
+ requirements:
108
+ - - ~>
109
+ - !ruby/object:Gem::Version
110
+ version: 1.0.0
111
+ - !ruby/object:Gem::Dependency
112
+ name: respondie
113
+ requirement: !ruby/object:Gem::Requirement
116
114
  none: false
117
- requirements:
115
+ requirements:
118
116
  - - ~>
119
- - !ruby/object:Gem::Version
120
- hash: 59
121
- segments:
122
- - 0
123
- - 9
124
- - 0
117
+ - !ruby/object:Gem::Version
125
118
  version: 0.9.0
126
119
  type: :runtime
127
- version_requirements: *id007
120
+ prerelease: false
121
+ version_requirements: !ruby/object:Gem::Requirement
122
+ none: false
123
+ requirements:
124
+ - - ~>
125
+ - !ruby/object:Gem::Version
126
+ version: 0.9.0
128
127
  description: restfulie
129
128
  email: guilherme.silveira@caelum.com.br
130
129
  executables: []
131
-
132
130
  extensions: []
133
-
134
131
  extra_rdoc_files: []
135
-
136
- files:
132
+ files:
137
133
  - .gitignore
138
134
  - .gitmodules
139
135
  - .rspec
@@ -651,38 +647,30 @@ files:
651
647
  - tests/vendor/plugins/.gitkeep
652
648
  homepage: http://restfulie.caelumobjects.com
653
649
  licenses: []
654
-
655
650
  post_install_message:
656
651
  rdoc_options: []
657
-
658
- require_paths:
652
+ require_paths:
659
653
  - lib
660
- required_ruby_version: !ruby/object:Gem::Requirement
654
+ required_ruby_version: !ruby/object:Gem::Requirement
661
655
  none: false
662
- requirements:
663
- - - ">="
664
- - !ruby/object:Gem::Version
665
- hash: 3
666
- segments:
667
- - 0
668
- version: "0"
669
- required_rubygems_version: !ruby/object:Gem::Requirement
656
+ requirements:
657
+ - - ! '>='
658
+ - !ruby/object:Gem::Version
659
+ version: '0'
660
+ required_rubygems_version: !ruby/object:Gem::Requirement
670
661
  none: false
671
- requirements:
672
- - - ">="
673
- - !ruby/object:Gem::Version
674
- hash: 3
675
- segments:
676
- - 0
677
- version: "0"
662
+ requirements:
663
+ - - ! '>='
664
+ - !ruby/object:Gem::Version
665
+ version: '0'
678
666
  requirements: []
679
-
680
667
  rubyforge_project: restfulie
681
- rubygems_version: 1.8.11
668
+ rubygems_version: 1.8.24
682
669
  signing_key:
683
670
  specification_version: 3
684
- summary: Hypermedia aware resource based library in ruby (client side) and ruby on rails (server side).
685
- test_files:
671
+ summary: Hypermedia aware resource based library in ruby (client side) and ruby on
672
+ rails (server side).
673
+ test_files:
686
674
  - spec/integration/twitter.rb
687
675
  - spec/integration/twitter_spec.rb
688
676
  - spec/spec_helper.rb