continuent-tools-core 0.0.2 → 0.0.3

Sign up to get free protection for your applications and to get access to all the features.
Files changed (4) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +3 -1
  3. data/lib/tungsten.rb +16 -1
  4. metadata +2 -16
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 2b7b64099ff0f37bfcbaa4afa998993a4e023b74
4
- data.tar.gz: 58ebccaa84312b4a8e4f2b1f7365c44c7fa9d5f9
3
+ metadata.gz: 967a3842c5f61d634b62a76a5689cda1fbb2324a
4
+ data.tar.gz: cbafbbc03332cb62ce19472e5ceaeec055e64011
5
5
  SHA512:
6
- metadata.gz: 04bdffb22ff4b6152d423afbcbbfbd8315196e23c9f90a6eec80425d13976e0a42bdfe0bdbd7a4ec883ed3f2dc5e7c6d177a8fcd5064170cb47e46db794caf24
7
- data.tar.gz: 9b6b04384b36919462ab7e5a4a455f58f2e1442419492a1ae05ca3c0acb9350f1a76ff063769e818c1f750164f5173506ace560f9308362dec10e20fe5221708
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.
@@ -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.2
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-24 00:00:00.000000000 Z
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