continuent-tools-core 0.0.2 → 0.0.3
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.
- checksums.yaml +4 -4
- data/README.md +3 -1
- data/lib/tungsten.rb +16 -1
- metadata +2 -16
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 967a3842c5f61d634b62a76a5689cda1fbb2324a
|
|
4
|
+
data.tar.gz: cbafbbc03332cb62ce19472e5ceaeec055e64011
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: d9be063effa7e7f2651d2ba1018ed0059f361569e321190064c7d2155fd74ef41c9cc89c016884fda006fff41d88dbd27860797b094c491a1713fcb2c892a8db
|
|
7
|
+
data.tar.gz: 0650cf1489b15547c841947140775c2b41bc4008de31ab84791b9f0e5e75e8ecbe2123b391b31741f58f76e78559be2dadcde18cb2d656190a9e0260d7bb8910
|
data/README.md
CHANGED
|
@@ -3,6 +3,8 @@ continuent-tools-core
|
|
|
3
3
|
|
|
4
4
|
The continuent-tools-core is a package of libraries that are found in Tungsten Replicator. When the gem is built, these files are automatically exported from [https://code.google.com/p/tungsten-replicator/](https://code.google.com/p/tungsten-replicator/).
|
|
5
5
|
|
|
6
|
+
gem install json_pure continuent-tools-core
|
|
7
|
+
|
|
6
8
|
Script Structure
|
|
7
9
|
---
|
|
8
10
|
|
|
@@ -41,4 +43,4 @@ The first two examples show the base script outline for running against Continue
|
|
|
41
43
|
Viewing The Source Code
|
|
42
44
|
---
|
|
43
45
|
|
|
44
|
-
The source code for this gem is available at [code.google.com project](https://code.google.com/p/tungsten-replicator/source/browse/#svn%2Ftrunk%2Fbuilder%2Fextra%2Fcluster-home%2Flib%2Fruby%253Fstate%253Dclosed). The tungsten.rb and tungsten directory are packaged into the gem. All other files are required via the gemspec.
|
|
46
|
+
The source code for this gem is available at [code.google.com project](https://code.google.com/p/tungsten-replicator/source/browse/#svn%2Ftrunk%2Fbuilder%2Fextra%2Fcluster-home%2Flib%2Fruby%253Fstate%253Dclosed). The tungsten.rb and tungsten directory are packaged into the gem. All other files are required via the gemspec.
|
data/lib/tungsten.rb
CHANGED
|
@@ -1,9 +1,24 @@
|
|
|
1
1
|
libdir = File.dirname(__FILE__)
|
|
2
2
|
$LOAD_PATH.unshift(libdir) unless $LOAD_PATH.include?(libdir)
|
|
3
3
|
|
|
4
|
+
unless Object.const_defined?(:JSON)
|
|
5
|
+
require 'rubygems'
|
|
6
|
+
begin
|
|
7
|
+
require 'json_pure'
|
|
8
|
+
rescue LoadError
|
|
9
|
+
begin
|
|
10
|
+
require 'json-ruby'
|
|
11
|
+
rescue LoadError
|
|
12
|
+
require 'json'
|
|
13
|
+
end
|
|
14
|
+
end
|
|
15
|
+
end
|
|
16
|
+
unless Object.const_defined?(:JSON)
|
|
17
|
+
raise "Could not load JSON; did you install one of json_pure, json-ruby, or the C-based json library?"
|
|
18
|
+
end
|
|
19
|
+
|
|
4
20
|
require "date"
|
|
5
21
|
require "fileutils"
|
|
6
|
-
require 'json'
|
|
7
22
|
require 'logger'
|
|
8
23
|
require "optparse"
|
|
9
24
|
require "pathname"
|
metadata
CHANGED
|
@@ -1,29 +1,15 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: continuent-tools-core
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.0.
|
|
4
|
+
version: 0.0.3
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Continuent
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2014-02-
|
|
11
|
+
date: 2014-02-28 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
|
-
- !ruby/object:Gem::Dependency
|
|
14
|
-
name: json
|
|
15
|
-
requirement: !ruby/object:Gem::Requirement
|
|
16
|
-
requirements:
|
|
17
|
-
- - '>='
|
|
18
|
-
- !ruby/object:Gem::Version
|
|
19
|
-
version: '0'
|
|
20
|
-
type: :runtime
|
|
21
|
-
prerelease: false
|
|
22
|
-
version_requirements: !ruby/object:Gem::Requirement
|
|
23
|
-
requirements:
|
|
24
|
-
- - '>='
|
|
25
|
-
- !ruby/object:Gem::Version
|
|
26
|
-
version: '0'
|
|
27
13
|
- !ruby/object:Gem::Dependency
|
|
28
14
|
name: net-ssh
|
|
29
15
|
requirement: !ruby/object:Gem::Requirement
|