dsl_accessor 0.4.3 → 0.4.4

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,8 @@
1
+ *.gem
2
+ .bundle
3
+ .ruby-version
4
+ Gemfile.lock
5
+ Gemfile.1.9.3.lock
6
+ pkg/*
7
+ tmp/*
8
+ vendor
@@ -0,0 +1,3 @@
1
+ source "http://rubygems.org"
2
+
3
+ gemspec
@@ -2,6 +2,14 @@ unless Module.new.respond_to?(:delegate)
2
2
  require File.dirname(__FILE__) + "/../core_ext/module/delegation"
3
3
  end
4
4
 
5
+ module DslAccessor
6
+ if RUBY_VERSION >= "1.9"
7
+ BlankSlate = ::BasicObject
8
+ else
9
+ require 'blankslate'
10
+ end
11
+ end
12
+
5
13
  require File.dirname(__FILE__) + '/dsl_accessor/version'
6
14
  require File.dirname(__FILE__) + '/dsl_accessor/auto_declare'
7
15
  require File.dirname(__FILE__) + '/dsl_accessor/accessor'
@@ -1,5 +1,3 @@
1
- require 'blankslate'
2
-
3
1
  module DslAccessor
4
2
  module AutoDeclare
5
3
  class DefineClassMethod < BlankSlate
@@ -36,6 +34,3 @@ module DslAccessor
36
34
  end
37
35
  end
38
36
  end
39
-
40
-
41
- __END__
@@ -1,4 +1,6 @@
1
1
  module DslAccessor
2
- VERSION = "0.4.3"
2
+ unless const_defined?(:VERSION)
3
+ VERSION = "0.4.4"
4
+ end
3
5
  end
4
6
 
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: dsl_accessor
3
3
  version: !ruby/object:Gem::Version
4
- hash: 9
4
+ hash: 7
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
8
  - 4
9
- - 3
10
- version: 0.4.3
9
+ - 4
10
+ version: 0.4.4
11
11
  platform: ruby
12
12
  authors:
13
13
  - maiha
@@ -15,7 +15,7 @@ autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
17
 
18
- date: 2013-08-27 00:00:00 Z
18
+ date: 2013-09-14 00:00:00 Z
19
19
  dependencies:
20
20
  - !ruby/object:Gem::Dependency
21
21
  name: optionize
@@ -73,7 +73,9 @@ extensions: []
73
73
  extra_rdoc_files: []
74
74
 
75
75
  files:
76
+ - .gitignore
76
77
  - Gemfile
78
+ - Gemfile.1.9.3
77
79
  - MIT-LICENSE
78
80
  - README
79
81
  - Rakefile