activegroonga 4.2.0 → 4.2.1
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.
- checksums.yaml +4 -4
- data/doc/text/news.textile +13 -2
- data/lib/active_groonga/migration.rb +11 -1
- data/lib/active_groonga/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 8dccd58f6384c8c6969cd79c907112ce34932f66
|
4
|
+
data.tar.gz: 17798d9e7c27cd37a1c20b4b08661b0e1602b0ab
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 446a5b63a6814f4beb6cb2a4385e5401f27319df5e0d8946cc29d627a4a5fb6166dce1d4aba52aaa9d03a54d534315394e6f251ca72ff4cae91ee9a961dc8f77
|
7
|
+
data.tar.gz: 4e696a7fbd0f2bf38350cf40eb1a1f2b9aeb7126ccf8a136fe2807fb978019f20187ec26a7e17dab2a7563c1e1102eda129d09d0dabadb09fc98265b47dcf628
|
data/doc/text/news.textile
CHANGED
@@ -1,11 +1,22 @@
|
|
1
1
|
h1. NEWS
|
2
2
|
|
3
|
+
h2(#4-2-1). 4.2.1: 2015-09-26
|
4
|
+
|
5
|
+
h3. Improvements
|
6
|
+
|
7
|
+
* [GitHub#18] Supported non Rails environment such as Padrino.
|
8
|
+
[Patch by KITAITI Makoto]
|
9
|
+
|
10
|
+
h3. Thanks
|
11
|
+
|
12
|
+
* KITAITI Makoto
|
13
|
+
|
3
14
|
h2(#4-2-0). 4.2.0: 2014-12-23
|
4
15
|
|
5
16
|
h3. Improvements
|
6
17
|
|
7
18
|
* Supported Rails 4.2.0.
|
8
|
-
* [GitHub#11] Supported yielding block on {ActiveGroonga::Base
|
19
|
+
* [GitHub#11] Supported yielding block on {ActiveGroonga::Base#initialize}.
|
9
20
|
[Patch by Eito Katagiri]
|
10
21
|
* [GitHub#13][development] Reduced needless @make@ on testing.
|
11
22
|
[Patch by Eito Katagiri]
|
@@ -19,7 +30,7 @@ h3. Fixes
|
|
19
30
|
[Patch by Eito Katagiri]
|
20
31
|
* [GitHub#15] Fixed a bug that @Groonga::NoSuchColumn@ is raised when
|
21
32
|
iterating {ActiveGroonga::ResultSet} that is created with
|
22
|
-
{ActiveGroonga::Base
|
33
|
+
{ActiveGroonga::Base.select} of @Groonga::Hash@ table.
|
23
34
|
[Patch by Eito Katagiri]
|
24
35
|
* [GitHub#16] Fixed indentation in generated migration file.
|
25
36
|
[Patch by Eito Katagiri]
|
@@ -64,12 +64,22 @@ module ActiveGroonga
|
|
64
64
|
|
65
65
|
private
|
66
66
|
def report(message)
|
67
|
-
relative_path = @path.relative_path_from(
|
67
|
+
relative_path = @path.relative_path_from(root_directory)
|
68
68
|
text = "#{@version} #{name} (#{relative_path}): #{message}"
|
69
69
|
rest_length = [0, 75 - text.length].max
|
70
70
|
puts("== #{text} #{'=' * rest_length}")
|
71
71
|
end
|
72
72
|
|
73
|
+
def root_directory
|
74
|
+
if defined?(Rails)
|
75
|
+
Rails.root
|
76
|
+
elsif defined?(Padrino)
|
77
|
+
Padrino.root
|
78
|
+
else
|
79
|
+
Pathname.pwd
|
80
|
+
end
|
81
|
+
end
|
82
|
+
|
73
83
|
def method_missing(name, *args, &block)
|
74
84
|
if @schema.respond_to?(name)
|
75
85
|
@schema.send(name, *args, &block)
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: activegroonga
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 4.2.
|
4
|
+
version: 4.2.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Kouhei Sutou
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2015-09-26 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rroonga
|