box 0.0.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. data/lib/box.rb +22 -0
  2. data/lib/box/version.rb +13 -0
  3. metadata +63 -0
@@ -0,0 +1,22 @@
1
+ module Box
2
+ class Files
3
+ def self.load
4
+ files = {}
5
+
6
+ if defined?(DATA)
7
+ DATA.read.split(/^@@ /).each do |chunk|
8
+ if chunk != ""
9
+ file_name = chunk.match(/(\A\w+.\w+)/)[0]
10
+ file_content = chunk.split(/\A\w+.\w+\n/)[1]
11
+
12
+ files[file_name] = file_content
13
+ end
14
+ end
15
+ end
16
+
17
+ files
18
+ end
19
+ end
20
+
21
+ FILES = Box::Files.load
22
+ end
@@ -0,0 +1,13 @@
1
+ module Box
2
+ module Version
3
+ MAJOR = 0
4
+ MINOR = 0
5
+ PATCH = 1
6
+
7
+ def self.to_s
8
+ [MAJOR, MINOR, PATCH].join('.')
9
+ end
10
+ end
11
+
12
+ VERSION = Version.to_s
13
+ end
metadata ADDED
@@ -0,0 +1,63 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: box
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.0.1
5
+ prerelease:
6
+ platform: ruby
7
+ authors:
8
+ - Pablo Astigarraga
9
+ autorequire:
10
+ bindir: bin
11
+ cert_chain: []
12
+ date: 2012-04-21 00:00:00.000000000 Z
13
+ dependencies:
14
+ - !ruby/object:Gem::Dependency
15
+ name: rake
16
+ requirement: !ruby/object:Gem::Requirement
17
+ none: false
18
+ requirements:
19
+ - - ! '>='
20
+ - !ruby/object:Gem::Version
21
+ version: '0'
22
+ type: :development
23
+ prerelease: false
24
+ version_requirements: !ruby/object:Gem::Requirement
25
+ none: false
26
+ requirements:
27
+ - - ! '>='
28
+ - !ruby/object:Gem::Version
29
+ version: '0'
30
+ description:
31
+ email: pote@tardis.com.uy
32
+ executables: []
33
+ extensions: []
34
+ extra_rdoc_files: []
35
+ files:
36
+ - lib/box.rb
37
+ - lib/box/version.rb
38
+ homepage: http://poteland.com
39
+ licenses: []
40
+ post_install_message:
41
+ rdoc_options: []
42
+ require_paths:
43
+ - lib
44
+ - lib
45
+ required_ruby_version: !ruby/object:Gem::Requirement
46
+ none: false
47
+ requirements:
48
+ - - ! '>='
49
+ - !ruby/object:Gem::Version
50
+ version: '0'
51
+ required_rubygems_version: !ruby/object:Gem::Requirement
52
+ none: false
53
+ requirements:
54
+ - - ! '>='
55
+ - !ruby/object:Gem::Version
56
+ version: '0'
57
+ requirements: []
58
+ rubyforge_project:
59
+ rubygems_version: 1.8.22
60
+ signing_key:
61
+ specification_version: 3
62
+ summary: A dead simple inline filesystem for your ruby scripts
63
+ test_files: []