copycopter_client 1.0.1 → 1.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/README.md +2 -2
- data/Rakefile +12 -0
- data/lib/copycopter_client/client.rb +1 -1
- data/lib/copycopter_client/version.rb +1 -1
- data/spec/copycopter_client/client_spec.rb +2 -1
- metadata +14 -14
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
|
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
|
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]
|
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:
|
5
|
-
prerelease:
|
4
|
+
hash: 19
|
5
|
+
prerelease:
|
6
6
|
segments:
|
7
7
|
- 1
|
8
8
|
- 0
|
9
|
-
-
|
10
|
-
version: 1.0.
|
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-
|
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
|
-
|
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
|
-
|
34
|
+
version_requirements: *id001
|
35
|
+
name: i18n
|
36
|
+
prerelease: false
|
37
37
|
- !ruby/object:Gem::Dependency
|
38
38
|
type: :runtime
|
39
|
-
|
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
|
-
|
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.
|
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
|