hazelcast-jars 2.5.1-jruby → 3.0.SNAPSHOT-jruby

Sign up to get free protection for your applications and to get access to all the features.
data/Gemfile CHANGED
@@ -1,6 +1,6 @@
1
- source "http://rubygems.org"
1
+ source 'http://rubygems.org'
2
2
 
3
3
  group :development do
4
- gem "bundler"
5
- gem "jeweler"
4
+ gem 'bundler'
5
+ gem 'jeweler'
6
6
  end
data/Rakefile CHANGED
@@ -1,22 +1,28 @@
1
1
  require 'rubygems'
2
2
  require 'rake'
3
+ require File.expand_path(File.dirname(__FILE__) + '/lib/hazelcast-jars/version')
3
4
 
4
5
  begin
5
6
  require 'jeweler'
6
7
  Jeweler::Tasks.new do |gem|
7
- gem.name = "hazelcast-jars"
8
- gem.homepage = "http://github.com/aemadrid/hazelcast-jars"
9
- gem.license = "MIT"
10
- gem.summary = %Q{Utility gem to carry the latest Hazelcast jars.}
11
- gem.description = %Q{Something to make my life easier.}
12
- gem.email = "aemadrid@gmail.com"
13
- gem.authors = ["Adrian Madrid"]
14
- gem.platform = "jruby"
15
- gem.rubyforge_project = "hazelcast-jars"
16
- gem.files.include "lib/*.jar"
8
+ gem.name = 'hazelcast-jars'
9
+ gem.homepage = 'http://github.com/aemadrid/hazelcast-jars'
10
+ gem.license = 'MIT'
11
+
12
+ gem.summary = 'Utility gem to carry the latest Hazelcast jars.'
13
+ gem.description = 'Something to make my life easier.'
14
+
15
+ gem.email = 'aemadrid@gmail.com'
16
+ gem.authors = ['Adrian Madrid']
17
+
18
+ gem.platform = 'jruby'
19
+ gem.rubyforge_project = 'hazelcast-jars'
20
+ gem.version = Hazelcast::Jars.gem_version
21
+
22
+ gem.files.include 'lib/*.jar'
17
23
  Jeweler::GemcutterTasks.new
18
24
  end
19
25
  Jeweler::RubygemsDotOrgTasks.new
20
26
  rescue LoadError
21
- puts "Jeweler (or a dependency) not available. Install it with: gem install jeweler"
27
+ puts 'Jeweler (or a dependency) not available. Install it with: gem install jeweler'
22
28
  end
data/VERSION CHANGED
@@ -1 +1 @@
1
- 2.5.1
1
+ 3.0
data/VERSION_EXT ADDED
@@ -0,0 +1 @@
1
+ SNAPSHOT
@@ -5,12 +5,12 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = "hazelcast-jars"
8
- s.version = "2.5.1"
8
+ s.version = "3.0.SNAPSHOT"
9
9
  s.platform = "jruby"
10
10
 
11
- s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
+ s.required_rubygems_version = Gem::Requirement.new("> 1.3.1") if s.respond_to? :required_rubygems_version=
12
12
  s.authors = ["Adrian Madrid"]
13
- s.date = "2013-05-03"
13
+ s.date = "2013-06-26"
14
14
  s.description = "Something to make my life easier."
15
15
  s.email = "aemadrid@gmail.com"
16
16
  s.extra_rdoc_files = [
@@ -24,10 +24,14 @@ Gem::Specification.new do |s|
24
24
  "README.rdoc",
25
25
  "Rakefile",
26
26
  "VERSION",
27
+ "VERSION_EXT",
27
28
  "hazelcast-jars.gemspec",
28
- "lib/hazelcast-2.5.1.jar",
29
- "lib/hazelcast-client-2.5.1.jar",
30
- "lib/hazelcast-jars.rb"
29
+ "lib/hazelcast-3.0-SNAPSHOT.jar",
30
+ "lib/hazelcast-all-3.0-SNAPSHOT.jar",
31
+ "lib/hazelcast-client-3.0-SNAPSHOT.jar",
32
+ "lib/hazelcast-jars.rb",
33
+ "lib/hazelcast-jars/hazelcast-jars.rb",
34
+ "lib/hazelcast-jars/version.rb"
31
35
  ]
32
36
  s.homepage = "http://github.com/aemadrid/hazelcast-jars"
33
37
  s.licenses = ["MIT"]
Binary file
Binary file
@@ -0,0 +1,21 @@
1
+ raise 'hazelcast-jars only runs on JRuby. Sorry!' unless (RUBY_PLATFORM =~ /java/)
2
+
3
+ require File.expand_path(File.dirname(__FILE__) + '/version')
4
+
5
+ module Hazelcast
6
+ class Jars
7
+
8
+ def self.client
9
+ require "hazelcast-client-#{full_version}.jar"
10
+ end
11
+
12
+ def self.server
13
+ require "hazelcast-#{full_version}.jar"
14
+ end
15
+
16
+ def self.all
17
+ require "hazelcast-all-#{full_version}.jar"
18
+ end
19
+
20
+ end
21
+ end
@@ -0,0 +1,32 @@
1
+ module Hazelcast
2
+ class Jars
3
+
4
+ LIB_PATH = File.expand_path(File.dirname(File.dirname(__FILE__))) unless defined?(LIB_PATH)
5
+ $:.unshift(LIB_PATH) unless $:.include?(LIB_PATH)
6
+
7
+ def self.version
8
+ @version ||= File.read File.expand_path(LIB_PATH + '/../VERSION')
9
+ end
10
+
11
+ def self.version_ext
12
+ @version_ext ||= File.read File.expand_path(LIB_PATH + '/../VERSION_EXT')
13
+ end
14
+
15
+ def self.gem_version
16
+ unless @full_version
17
+ @full_version = version
18
+ @full_version += ".#{version_ext}" unless version_ext.empty?
19
+ end
20
+ @full_version
21
+ end
22
+
23
+ def self.full_version
24
+ unless @full_version
25
+ @full_version = version
26
+ @full_version += "-#{version_ext}" unless version_ext.empty?
27
+ end
28
+ @full_version
29
+ end
30
+
31
+ end
32
+ end
@@ -1,28 +1 @@
1
- raise "hazelcast-jars only runs on JRuby. Sorry!" unless (RUBY_PLATFORM =~ /java/)
2
-
3
- module Hazelcast
4
- class Jars
5
-
6
- GEM_ROOT = File.expand_path(File.dirname(__FILE__)) unless defined?(GEM_ROOT)
7
- $:.unshift(GEM_ROOT) unless $:.include?(GEM_ROOT)
8
-
9
- class << self
10
-
11
- def version
12
- @version ||= File.read File.expand_path(GEM_ROOT + '/../VERSION')
13
- end
14
-
15
- def client
16
- require "hazelcast-client-#{version}.jar"
17
- end
18
-
19
- def server
20
- require "hazelcast-#{version}.jar"
21
- end
22
-
23
- def all
24
- [server, client]
25
- end
26
- end
27
- end
28
- end
1
+ require File.expand_path(File.dirname(__FILE__) + '/../lib/hazelcast-jars/hazelcast-jars')
metadata CHANGED
@@ -1,31 +1,29 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: hazelcast-jars
3
3
  version: !ruby/object:Gem::Version
4
- prerelease:
5
- version: 2.5.1
4
+ version: 3.0.SNAPSHOT
5
+ prerelease: 4
6
6
  platform: jruby
7
7
  authors:
8
8
  - Adrian Madrid
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2013-05-03 00:00:00.000000000 Z
12
+ date: 2013-06-26 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: bundler
16
16
  version_requirements: !ruby/object:Gem::Requirement
17
17
  requirements:
18
- - - ">="
18
+ - - '>='
19
19
  - !ruby/object:Gem::Version
20
- version: !binary |-
21
- MA==
20
+ version: '0'
22
21
  none: false
23
22
  requirement: !ruby/object:Gem::Requirement
24
23
  requirements:
25
- - - ">="
24
+ - - '>='
26
25
  - !ruby/object:Gem::Version
27
- version: !binary |-
28
- MA==
26
+ version: '0'
29
27
  none: false
30
28
  prerelease: false
31
29
  type: :development
@@ -33,17 +31,15 @@ dependencies:
33
31
  name: jeweler
34
32
  version_requirements: !ruby/object:Gem::Requirement
35
33
  requirements:
36
- - - ">="
34
+ - - '>='
37
35
  - !ruby/object:Gem::Version
38
- version: !binary |-
39
- MA==
36
+ version: '0'
40
37
  none: false
41
38
  requirement: !ruby/object:Gem::Requirement
42
39
  requirements:
43
- - - ">="
40
+ - - '>='
44
41
  - !ruby/object:Gem::Version
45
- version: !binary |-
46
- MA==
42
+ version: '0'
47
43
  none: false
48
44
  prerelease: false
49
45
  type: :development
@@ -55,16 +51,20 @@ extra_rdoc_files:
55
51
  - LICENSE.txt
56
52
  - README.rdoc
57
53
  files:
58
- - ".document"
54
+ - .document
59
55
  - Gemfile
60
56
  - LICENSE.txt
61
57
  - README.rdoc
62
58
  - Rakefile
63
59
  - VERSION
60
+ - VERSION_EXT
64
61
  - hazelcast-jars.gemspec
65
- - lib/hazelcast-2.5.1.jar
66
- - lib/hazelcast-client-2.5.1.jar
62
+ - lib/hazelcast-3.0-SNAPSHOT.jar
63
+ - lib/hazelcast-all-3.0-SNAPSHOT.jar
64
+ - lib/hazelcast-client-3.0-SNAPSHOT.jar
67
65
  - lib/hazelcast-jars.rb
66
+ - lib/hazelcast-jars/hazelcast-jars.rb
67
+ - lib/hazelcast-jars/version.rb
68
68
  homepage: http://github.com/aemadrid/hazelcast-jars
69
69
  licenses:
70
70
  - MIT
@@ -74,17 +74,18 @@ require_paths:
74
74
  - lib
75
75
  required_ruby_version: !ruby/object:Gem::Requirement
76
76
  requirements:
77
- - - ">="
77
+ - - '>='
78
78
  - !ruby/object:Gem::Version
79
- version: !binary |-
80
- MA==
79
+ segments:
80
+ - 0
81
+ hash: 2
82
+ version: '0'
81
83
  none: false
82
84
  required_rubygems_version: !ruby/object:Gem::Requirement
83
85
  requirements:
84
- - - ">="
86
+ - - '>'
85
87
  - !ruby/object:Gem::Version
86
- version: !binary |-
87
- MA==
88
+ version: 1.3.1
88
89
  none: false
89
90
  requirements: []
90
91
  rubyforge_project: hazelcast-jars
Binary file
Binary file