jrclj 1.0.0 → 1.0.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (2) hide show
  1. data/lib/jrclj.rb +6 -3
  2. metadata +42 -42
@@ -1,7 +1,7 @@
1
1
  require 'java'
2
2
 
3
3
  #Dir["#{File.dirname(__FILE__)}/*.jar"].each { |jar| puts "requiring: #{jar}"; require jar }
4
- import "clojure.lang.RT"
4
+ java_import "clojure.lang.RT"
5
5
 
6
6
  class JRClj
7
7
  def initialize *pkgs
@@ -15,7 +15,7 @@ class JRClj
15
15
  end
16
16
  end
17
17
 
18
- def _import pkg_name, sym=nil, sym_alais=nil
18
+ def _import pkg_name, sym=nil, sym_alias=nil
19
19
  @require.invoke @symbol.invoke(pkg_name)
20
20
  if sym
21
21
  sym_alias ||= sym
@@ -44,5 +44,8 @@ class JRClj
44
44
  _invoke symbol, *args
45
45
  end
46
46
 
47
+ def self.persistent_map entries=[]
48
+ Java::ClojureLang::PersistentArrayMap.new entries.to_java
49
+ end
47
50
  end
48
-
51
+
metadata CHANGED
@@ -1,57 +1,57 @@
1
1
  --- !ruby/object:Gem::Specification
2
- required_ruby_version: !ruby/object:Gem::Requirement
3
- requirements:
4
- - - '>='
5
- - !ruby/object:Gem::Version
6
- version: "0"
7
- version:
8
- email: kyle.burton@gmail.com
2
+ name: jrclj
3
+ version: !ruby/object:Gem::Version
4
+ prerelease:
5
+ version: 1.0.1
6
+ platform: ruby
7
+ authors:
8
+ - Kyle Burton
9
+ autorequire:
10
+ bindir: bin
9
11
  cert_chain: []
10
12
 
11
- summary: Bridge Library for working with Clojure from JRuby
12
- post_install_message:
13
+ date: 2012-03-18 00:00:00 Z
14
+ dependencies: []
15
+
16
+ description: |
17
+ Helper library for working with Clojure from JRuby.
18
+
19
+ email: kyle.burton@gmail.com
20
+ executables: []
21
+
22
+ extensions: []
23
+
13
24
  extra_rdoc_files: []
14
25
 
26
+ files:
27
+ - lib/jrclj.rb
28
+ - spec/jrclj_spec.rb
15
29
  homepage: http://github.com/kyleburton/jrclj
16
- signing_key:
17
- name: jrclj
18
- rdoc_options: []
19
-
20
- rubyforge_project:
21
- autorequire:
22
30
  licenses: []
23
31
 
24
- executables: []
32
+ post_install_message:
33
+ rdoc_options: []
25
34
 
26
- description: |
27
- Helper library for working with Clojure from JRuby.
28
- specification_version: 3
29
- default_executable:
30
- files:
31
- - lib/jrclj.rb
32
- - spec/jrclj_spec.rb
35
+ require_paths:
36
+ - lib
37
+ required_ruby_version: !ruby/object:Gem::Requirement
38
+ none: false
39
+ requirements:
40
+ - - ">="
41
+ - !ruby/object:Gem::Version
42
+ version: "0"
33
43
  required_rubygems_version: !ruby/object:Gem::Requirement
44
+ none: false
34
45
  requirements:
35
- - - '>='
36
- - !ruby/object:Gem::Version
37
- version: "0"
38
- version:
39
- extensions: []
40
-
41
- rubygems_version: 1.3.5
46
+ - - ">="
47
+ - !ruby/object:Gem::Version
48
+ version: "0"
42
49
  requirements: []
43
50
 
44
- authors:
45
- - Kyle Burton
46
- date: 2010-03-07 05:00:00 +00:00
47
- platform: ruby
51
+ rubyforge_project:
52
+ rubygems_version: 1.8.15
53
+ signing_key:
54
+ specification_version: 3
55
+ summary: Bridge Library for working with Clojure from JRuby
48
56
  test_files: []
49
57
 
50
- version: !ruby/object:Gem::Version
51
- version: 1.0.0
52
- require_paths:
53
- - lib
54
- dependencies: []
55
-
56
- bindir: bin
57
- has_rdoc: true