tbpgr_utils 0.0.58 → 0.0.59
Sign up to get free protection for your applications and to get access to all the features.
- data/README.md +12 -0
- data/lib/eval_helper_object.rb +6 -0
- data/lib/tbpgr_utils/version.rb +1 -1
- metadata +13 -12
data/README.md
CHANGED
@@ -57,6 +57,7 @@ Or install it yourself as:
|
|
57
57
|
|[AttributesInitializable::ClassMethods.attr_reader_init](#attributesinitializableclassmethodsattr_reader_init) |generate attr_reader + initializer |
|
58
58
|
|[AttributesInitializable::ClassMethods.attr_writer init](#attributesinitializableclassmethodsattr_writer_init) |generate attr_writer + initializer |
|
59
59
|
|[EndERB.apply](#enderbapply) |for single template script using __END__ and DATA |
|
60
|
+
|[EvalHelper Object](#evalhelper-object) |enable to use EvalHelper in Object |
|
60
61
|
|[EvalHelper#if_code](#evalhelperif_code) |create if strings, for eval |
|
61
62
|
|[EvalHelper#if_code_after](#evalhelperif_code_after) |create after-if strings, for eval |
|
62
63
|
|[EvalHelper#require_code](#evalhelperrequire_code) |create require strings, for eval |
|
@@ -1363,6 +1364,16 @@ output
|
|
1363
1364
|
|
1364
1365
|
[back to list](#list)
|
1365
1366
|
|
1367
|
+
### EvalHelper Object
|
1368
|
+
|
1369
|
+
enable to use EvalHelper in Object
|
1370
|
+
~~~ruby
|
1371
|
+
require 'eval_helper_object'
|
1372
|
+
require_code("hoge") # => 'require "hoge"'
|
1373
|
+
~~~
|
1374
|
+
|
1375
|
+
[back to list](#list)
|
1376
|
+
|
1366
1377
|
### EvalHelper#if_code
|
1367
1378
|
|
1368
1379
|
if case
|
@@ -2201,6 +2212,7 @@ if you are Sublime Text2 user, you can use snippet for TbpgrUtils.
|
|
2201
2212
|
https://github.com/tbpgr/tbpgr_utils_snippets
|
2202
2213
|
|
2203
2214
|
## History
|
2215
|
+
* version 0.0.59 : add EvalHelper Object
|
2204
2216
|
* version 0.0.58 : add EvalHelper#require_relative_code
|
2205
2217
|
* version 0.0.57 : add EvalHelper#require_code
|
2206
2218
|
* version 0.0.56 : add EvalHelper#toternary_operator
|
data/lib/tbpgr_utils/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: tbpgr_utils
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.59
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,11 +9,11 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2014-03-
|
12
|
+
date: 2014-03-07 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: activesupport
|
16
|
-
requirement: &
|
16
|
+
requirement: &26273352 !ruby/object:Gem::Requirement
|
17
17
|
none: false
|
18
18
|
requirements:
|
19
19
|
- - ~>
|
@@ -21,10 +21,10 @@ dependencies:
|
|
21
21
|
version: 4.0.1
|
22
22
|
type: :runtime
|
23
23
|
prerelease: false
|
24
|
-
version_requirements: *
|
24
|
+
version_requirements: *26273352
|
25
25
|
- !ruby/object:Gem::Dependency
|
26
26
|
name: bundler
|
27
|
-
requirement: &
|
27
|
+
requirement: &26273064 !ruby/object:Gem::Requirement
|
28
28
|
none: false
|
29
29
|
requirements:
|
30
30
|
- - ~>
|
@@ -32,10 +32,10 @@ dependencies:
|
|
32
32
|
version: '1.3'
|
33
33
|
type: :development
|
34
34
|
prerelease: false
|
35
|
-
version_requirements: *
|
35
|
+
version_requirements: *26273064
|
36
36
|
- !ruby/object:Gem::Dependency
|
37
37
|
name: rake
|
38
|
-
requirement: &
|
38
|
+
requirement: &26272836 !ruby/object:Gem::Requirement
|
39
39
|
none: false
|
40
40
|
requirements:
|
41
41
|
- - ! '>='
|
@@ -43,10 +43,10 @@ dependencies:
|
|
43
43
|
version: '0'
|
44
44
|
type: :development
|
45
45
|
prerelease: false
|
46
|
-
version_requirements: *
|
46
|
+
version_requirements: *26272836
|
47
47
|
- !ruby/object:Gem::Dependency
|
48
48
|
name: rspec
|
49
|
-
requirement: &
|
49
|
+
requirement: &26272512 !ruby/object:Gem::Requirement
|
50
50
|
none: false
|
51
51
|
requirements:
|
52
52
|
- - ~>
|
@@ -54,10 +54,10 @@ dependencies:
|
|
54
54
|
version: 2.14.1
|
55
55
|
type: :development
|
56
56
|
prerelease: false
|
57
|
-
version_requirements: *
|
57
|
+
version_requirements: *26272512
|
58
58
|
- !ruby/object:Gem::Dependency
|
59
59
|
name: simplecov
|
60
|
-
requirement: &
|
60
|
+
requirement: &26272212 !ruby/object:Gem::Requirement
|
61
61
|
none: false
|
62
62
|
requirements:
|
63
63
|
- - ~>
|
@@ -65,7 +65,7 @@ dependencies:
|
|
65
65
|
version: 0.8.2
|
66
66
|
type: :development
|
67
67
|
prerelease: false
|
68
|
-
version_requirements: *
|
68
|
+
version_requirements: *26272212
|
69
69
|
description: Utilities
|
70
70
|
email:
|
71
71
|
- tbpgr@tbpgr.jp
|
@@ -93,6 +93,7 @@ files:
|
|
93
93
|
- lib/eval_helper/ternary_operator.rb
|
94
94
|
- lib/eval_helper/unless_code.rb
|
95
95
|
- lib/eval_helper/unless_code_after.rb
|
96
|
+
- lib/eval_helper_object.rb
|
96
97
|
- lib/ghostable.rb
|
97
98
|
- lib/metasyntactic_variable.rb
|
98
99
|
- lib/open_classes/array.rb
|