copycopter_client 1.0.1 → 1.0.2

Sign up to get free protection for your applications and to get access to all the features.
data/README.md CHANGED
@@ -1,9 +1,9 @@
1
1
  Copycopter Client
2
2
  =================
3
3
 
4
- This is the client gem for integrating apps with "Copycopter":http://copycopter.com.
4
+ This is the client gem for integrating apps with [Copycopter](http://copycopter.com).
5
5
 
6
- The client integrates with the I18n gem so that you can access copy text and translations from a Copycopter project.
6
+ The client integrates with the I18n gem so that you can access copy and translations from a Copycopter project.
7
7
 
8
8
  Installation
9
9
  ------------
data/Rakefile CHANGED
@@ -36,3 +36,15 @@ Rake::GemPackageTask.new($specification) do |package|
36
36
  package.need_tar = true
37
37
  end
38
38
 
39
+ gem_file = "pkg/#{$specification.name}-#{$specification.version}.gem"
40
+
41
+ desc "Build and install the latest gem"
42
+ task :install => :gem do
43
+ sh("gem install --local #{gem_file}")
44
+ end
45
+
46
+ desc "Build and release the latest gem"
47
+ task :release => :gem do
48
+ sh("gem push #{gem_file}")
49
+ end
50
+
@@ -12,7 +12,7 @@ module CopycopterClient
12
12
  # These errors will be rescued when connecting Copycopter.
13
13
  HTTP_ERRORS = [Timeout::Error, Errno::EINVAL, Errno::ECONNRESET, EOFError,
14
14
  Net::HTTPBadResponse, Net::HTTPHeaderSyntaxError,
15
- Net::ProtocolError]
15
+ Net::ProtocolError, SocketError]
16
16
 
17
17
  # Usually instantiated from {Configuration#apply}. Copies options.
18
18
  # @param options [Hash]
@@ -1,6 +1,6 @@
1
1
  module CopycopterClient
2
2
  # Client version
3
- VERSION = "1.0.1"
3
+ VERSION = "1.0.2"
4
4
 
5
5
  # API version being used to communicate with the server
6
6
  API_VERSION = "2.0"
@@ -64,7 +64,8 @@ describe CopycopterClient do
64
64
  EOFError.new,
65
65
  Net::HTTPBadResponse.new,
66
66
  Net::HTTPHeaderSyntaxError.new,
67
- Net::ProtocolError.new
67
+ Net::ProtocolError.new,
68
+ SocketError.new
68
69
  ]
69
70
 
70
71
  errors.each do |original_error|
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: copycopter_client
3
3
  version: !ruby/object:Gem::Version
4
- hash: 21
5
- prerelease: false
4
+ hash: 19
5
+ prerelease:
6
6
  segments:
7
7
  - 1
8
8
  - 0
9
- - 1
10
- version: 1.0.1
9
+ - 2
10
+ version: 1.0.2
11
11
  platform: ruby
12
12
  authors:
13
13
  - thoughtbot
@@ -15,14 +15,12 @@ autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
17
 
18
- date: 2011-02-02 00:00:00 -05:00
18
+ date: 2011-03-10 00:00:00 -05:00
19
19
  default_executable:
20
20
  dependencies:
21
21
  - !ruby/object:Gem::Dependency
22
22
  type: :runtime
23
- prerelease: false
24
- name: i18n
25
- version_requirements: &id001 !ruby/object:Gem::Requirement
23
+ requirement: &id001 !ruby/object:Gem::Requirement
26
24
  none: false
27
25
  requirements:
28
26
  - - ~>
@@ -33,12 +31,12 @@ dependencies:
33
31
  - 5
34
32
  - 0
35
33
  version: 0.5.0
36
- requirement: *id001
34
+ version_requirements: *id001
35
+ name: i18n
36
+ prerelease: false
37
37
  - !ruby/object:Gem::Dependency
38
38
  type: :runtime
39
- prerelease: false
40
- name: json
41
- version_requirements: &id002 !ruby/object:Gem::Requirement
39
+ requirement: &id002 !ruby/object:Gem::Requirement
42
40
  none: false
43
41
  requirements:
44
42
  - - ">="
@@ -47,7 +45,9 @@ dependencies:
47
45
  segments:
48
46
  - 0
49
47
  version: "0"
50
- requirement: *id002
48
+ version_requirements: *id002
49
+ name: json
50
+ prerelease: false
51
51
  description:
52
52
  email: support@thoughtbot.com
53
53
  executables: []
@@ -126,7 +126,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
126
126
  requirements: []
127
127
 
128
128
  rubyforge_project: copycopter_client
129
- rubygems_version: 1.3.7
129
+ rubygems_version: 1.6.1
130
130
  signing_key:
131
131
  specification_version: 3
132
132
  summary: Client for the Copycopter content management service