activegroonga 4.2.0 → 4.2.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 3219e30cd7f1459d4a6ae0c0cf5763be5997049f
4
- data.tar.gz: 70d7b188ab8e741e9cb1483b96d1270f29c05648
3
+ metadata.gz: 8dccd58f6384c8c6969cd79c907112ce34932f66
4
+ data.tar.gz: 17798d9e7c27cd37a1c20b4b08661b0e1602b0ab
5
5
  SHA512:
6
- metadata.gz: 6a348297bdd0b71a97c8f45a6aeba7d5c2b7cd8a3fc9aca8c30da07fb52580ac574d9f6656c2fe6cfc324bfd83f0f8cf046c75205d7968bd3386ff96617917bf
7
- data.tar.gz: 1eb7d8d90775dc92ea54ca44e13775f8814944df1506fd97e0a64063a435157140aa4b36bebdefdc9f1f57b305c7c980029e799ff4b7f95565d42caf906d7102
6
+ metadata.gz: 446a5b63a6814f4beb6cb2a4385e5401f27319df5e0d8946cc29d627a4a5fb6166dce1d4aba52aaa9d03a54d534315394e6f251ca72ff4cae91ee9a961dc8f77
7
+ data.tar.gz: 4e696a7fbd0f2bf38350cf40eb1a1f2b9aeb7126ccf8a136fe2807fb978019f20187ec26a7e17dab2a7563c1e1102eda129d09d0dabadb09fc98265b47dcf628
@@ -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.new}.
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#select} of @Groonga::Hash@ table.
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(Rails.root)
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)
@@ -17,7 +17,7 @@ module ActiveGroonga
17
17
  module VERSION
18
18
  MAJOR = 4
19
19
  MINOR = 2
20
- TINY = 0
20
+ TINY = 1
21
21
 
22
22
  STRING = [MAJOR, MINOR, TINY].join(".")
23
23
  end
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.0
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: 2014-12-23 00:00:00.000000000 Z
11
+ date: 2015-09-26 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rroonga