nov-jsonbuilder 0.0.1 → 0.0.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
data/Rakefile CHANGED
@@ -20,7 +20,7 @@ BIN_FILES = %w( )
20
20
 
21
21
  $LOAD_PATH.unshift "#{File.dirname(__FILE__)}/lib"
22
22
  require 'lib/jsonbuilder'
23
- VERS = Builder::JsonMarkup::Version.to_version
23
+ VERS = JsonBuilder::Version.to_version
24
24
  CLEAN.include ['*.gem', '.config']
25
25
  RDOC_OPTS = [
26
26
  "--title", "#{NAME} documentation",
@@ -8,21 +8,6 @@ module Builder
8
8
 
9
9
  class JsonMarkup
10
10
 
11
- module Version
12
- MAJOR = 0
13
- MINOR = 0
14
- REVISION = 1
15
- class << self
16
- def to_version
17
- "#{MAJOR}.#{MINOR}.#{REVISION}"
18
- end
19
-
20
- def to_name
21
- "#{MAJOR}_#{MINOR}_#{REVISION}"
22
- end
23
- end
24
- end
25
-
26
11
  def initialize(options = {})
27
12
  # @default_content_key is used in such case: markup.key(value, :attr_key => attr_value)
28
13
  # in this case, we need some key for value.
data/lib/jsonbuilder.rb CHANGED
@@ -1 +1,18 @@
1
- require 'builder/json_markup'
1
+ module JsonBuilder
2
+ module Version
3
+ MAJOR = 0
4
+ MINOR = 0
5
+ REVISION = 2
6
+ class << self
7
+ def to_version
8
+ "#{MAJOR}.#{MINOR}.#{REVISION}"
9
+ end
10
+
11
+ def to_name
12
+ "#{MAJOR}_#{MINOR}_#{REVISION}"
13
+ end
14
+ end
15
+ end
16
+ end
17
+
18
+ require 'builder/jsonmarkup'
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: nov-jsonbuilder
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.1
4
+ version: 0.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - nov