lmcadm 0.16.0 → 0.16.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 2fa137bc6b37c1d4b8ad21a83b634fb19fd6403dcff6b23005da7a467aab9d70
4
- data.tar.gz: 8a5f93e98b4f8248c9395e6a5980ae8c3ebc738dd45518295e781d165a0e715c
3
+ metadata.gz: a453803697879b159426c5b7a1b88c8eacdc8cb8b1913c1a1eb3997133ad21b9
4
+ data.tar.gz: 48fcd4dddff59446833f468fc93e2d942cdf37b940d9a3c91f466981fa7a9a71
5
5
  SHA512:
6
- metadata.gz: 67a59f6513b13f9619c28b7319ebc5902d53bcae865570681be86b6842cf3155021850f3b6d32973c9eeb23bf66316c0d1954ac54e389883d1eb8e9b7a8316b4
7
- data.tar.gz: 226c8ee80ed5519c3009fa8415abfbb0d9e5a566e52d44abb4ec6c112c48951647c4135e2fe68f521e9352b811b9521b98920c6fac6a93c33d2a1cf103e7c970
6
+ metadata.gz: 00d7640ab1100bc653a6717803a0b469950ad930f7b897997da4b778cb4835921c8ee2a5cbc3ca6303c7bd072a41b752aaada5bb91eb96111b2389b058da0fe1
7
+ data.tar.gz: 6ab293d8bb3a987243d6a57eae982eb1d7ac1bec6d04d6dce0aadb22ae9a1d84779528e49c50a43808a1a0d735af85b597b779fad620bfb3d9ff7eff80b41ddc
data/.gitignore CHANGED
@@ -15,3 +15,5 @@
15
15
  /.idea/modules.xml
16
16
  /Gemfile.lock
17
17
  /lmcadm-*.gem
18
+ ocra_gemfile
19
+ lmcadm*.exe
data/README.md CHANGED
@@ -14,6 +14,20 @@ These can usually be installed the same way ruby was installed.
14
14
 
15
15
  On Ubuntu for example, installing the `ruby-dev` via the package manager is sufficient.
16
16
 
17
+ ### Windows
18
+
19
+ Lmcadm works with https://rubyinstaller.org/downloads/, use the recommended version with Devkit and choose the default options during install.
20
+ Installation can continue with rubygems.
21
+
22
+ #### Known issues
23
+
24
+ *Unable to load the EventMachine C extension ; To use the pure-ruby reactor, require 'em/pure_ruby'*
25
+
26
+ Workaround: Reinstall eventmachine with --platform ruby.
27
+
28
+ gem uninstall eventmachine (select all versions if prompted)
29
+ gem install eventmachine --platform ruby
30
+
17
31
  ## Usage
18
32
 
19
33
  The primary usage documentation is in the help output of lmcadm:
@@ -32,6 +46,11 @@ Set the environment variable LMCADM\_PATH\_DEP to 1 to use the _lmc_ gem from ..
32
46
  Example:
33
47
  $ LMCADM_PATH_DEP=1 bundle exec lmcadm --version
34
48
 
49
+ ### Building an exe for windows using ocra
50
+
51
+ * Apply workaround reinstalling eventmachine (see above)
52
+ * run ocra.sh
53
+
35
54
  ## Contributing
36
55
 
37
56
  Bug reports and pull requests are welcome on GitHub at https://github.com/[USERNAME]/lmcadm.
data/exe/lmcadm CHANGED
@@ -109,5 +109,8 @@ module LMCAdm
109
109
  true
110
110
  end
111
111
 
112
+ if Encoding.find('locale') != 'UTF-8'
113
+ STDIN.set_encoding(Encoding.find('locale'),'UTF-8')
114
+ end
112
115
  exit run(ARGV)
113
116
  end
@@ -1,3 +1,3 @@
1
1
  module LMCAdm
2
- VERSION = '0.16.0'
2
+ VERSION = '0.16.1'
3
3
  end
@@ -0,0 +1,15 @@
1
+ # Temporary gemfile to be used by OCRA.
2
+ GEMFILE = 'ocra_gemfile'
3
+
4
+ # Add gems from gemspec.
5
+ ocra_gemfile = File.new(GEMFILE, 'w')
6
+ File.open("lmcadm.gemspec",'r') do |file|
7
+ file.each { |line| ocra_gemfile.write "gem #{$1}\n" if line =~ /spec.add_.*dependency (.+)/ }
8
+ end
9
+ ocra_gemfile.close
10
+
11
+ # Execute OCRA
12
+ #system("ocra --gemfile #{GEMFILE} --console script_name")
13
+
14
+ # Cleanup
15
+ #FileUtils.rm Dir.glob(GEMFILE)
data/ocra.sh ADDED
@@ -0,0 +1,2 @@
1
+ ruby makeocragemfile.rb
2
+ ocra --gemfile ocra_gemfile --gem-full exe/lmcadm
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: lmcadm
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.16.0
4
+ version: 0.16.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - erpel
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2021-05-06 00:00:00.000000000 Z
11
+ date: 2021-05-21 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -183,6 +183,8 @@ files:
183
183
  - lib/lmcadm/version.rb
184
184
  - lmcadm
185
185
  - lmcadm.gemspec
186
+ - makeocragemfile.rb
187
+ - ocra.sh
186
188
  homepage:
187
189
  licenses:
188
190
  - BSD-3-Clause