spinel 0.5.0 → 1.0.0

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 7efbff4b362858d3bb4ec7ad0efb505b1876b094
4
- data.tar.gz: f9084f203a49492a4d13c8fabadf886d656cb11c
3
+ metadata.gz: d4335fe8d829675b9fb15978bec795c291dfe608
4
+ data.tar.gz: 9ac449087fc92982c010a9bc69f25b49e3228a62
5
5
  SHA512:
6
- metadata.gz: 685721dab555cf5cd26d3f14b97104acddd6eb89dd8fd05561d3b4f2f780a7204f18f628dee704df67ef9b74c1681e9523c2235c74907a54741da6d9c1612ff7
7
- data.tar.gz: 4c41ca8da330313b2f203afc114926f844f8a4213482228ad91b8ae7303b91045a8ab7b9ae01b2e353b806d3363cd55074672e78ee8f0ace6f48e88ae81751f2
6
+ metadata.gz: 27e8e5e5c8705e468ae17e5497e1490bebdfa4f6b2d2291b4cf988cadd32d714d9e6b7b28d430c6cc685e52fda908427c52f8262c222e7a5523801fe38b63707
7
+ data.tar.gz: 2fb682a9fa151e51fd42102f2584da3c7960c279606b88e83e7cde43091f27fbb69109bc36c6cd38ca61bf54b5cfa6f21194df391638ac2b87c25055aacd27d0
@@ -1,3 +1,7 @@
1
+ # 1.0.0
2
+
3
+ * プロダクションで稼働開始したため、現行を1.0.0と採番する
4
+
1
5
  # 0.5.0
2
6
 
3
7
  * インデキシングするフィールドを複数指定できるようにする
data/README.md CHANGED
@@ -71,15 +71,14 @@ spinel.search 'usu'
71
71
  ### 設定 / Configuration
72
72
 
73
73
  設定はブロックにより行うことが出来ます。
74
- 以下の例で示されているデフォルト値で運用する場合には設定は必要ありません。
75
74
 
76
75
  ```ruby
77
76
  Spinel.configure do |config|
78
- config.redis = 'redis://127.0.0.1:6379/0'
77
+ config.redis = Redis.new(host: ENV['REDIS_HOST'], port: ENV['REDIS_PORT'], db: ENV['REDIS_DB'])
79
78
  config.minimal_word = 2
80
79
  config.cache_expire = 600
81
80
  config.search_limit = 10
82
- config.index_fields = :body
81
+ config.index_fields = [:body, :alias]
83
82
  config.namespace = 'spinel'
84
83
  end
85
84
  ```
@@ -90,7 +89,7 @@ end
90
89
  環境変数に `REDIS_URL` が存在するとき、`redis://127.0.0.1:6379/0` よりも優先してその値を使おうとします。
91
90
  また`Redis.current`で指定することも可能です。
92
91
 
93
- ```
92
+ ```ruby
94
93
  Redis.current = Redis.new(host: '127.0.0.1', port: 6379, db: 15)
95
94
  ```
96
95
 
@@ -101,7 +100,7 @@ require 'redis-namespace'
101
100
  Spinel.redis = Redis::Namespace.new(:ns, redis: Redis.new)
102
101
  ```
103
102
 
104
- ```
103
+ ```ruby
105
104
  require 'connection_pool'
106
105
  Spinel.redis = ConnectionPool.new(size: 5, timeout: 5) { Redis.new(host: '127.0.0.1', port: 6379) }
107
106
  ```
@@ -127,7 +126,7 @@ SpinelはRedisへのアクセスに `spinel:index:default` のようなキーを
127
126
 
128
127
  上位の `#{spinel_namespaace}` は configure によって指定可能です。
129
128
 
130
- ```
129
+ ```ruby
131
130
  Spinel.configure do |config|
132
131
  config.namespace = 'spinel'
133
132
  end
@@ -135,7 +134,7 @@ end
135
134
 
136
135
  下位の `#{index_type}` はデータ登録時及び検索時に指定を変更することが可能です。
137
136
 
138
- ```
137
+ ```ruby
139
138
  spinel = Spinel.new(:another_type)
140
139
  ```
141
140
 
@@ -143,9 +142,7 @@ spinel = Spinel.new(:another_type)
143
142
 
144
143
  ## バージョニング / Versioning
145
144
 
146
- Spinelのバージョニングは[Semantic Versioning 2.0.0](http://semver.org/)に基づいて採番されます。
147
- 現在Spinelは開発初期段階です。
148
- いつでも、いかなる変更も起こりうります。
145
+ Spinelのバージョニングは[Semantic Versioning 2.0.0](http://semver.org/)に基づいて採番されます。
149
146
 
150
147
  ## 活用例
151
148
 
@@ -1,6 +1,6 @@
1
1
  module Spinel
2
- MAJOR = 0
3
- MINOR = 5
2
+ MAJOR = 1
3
+ MINOR = 0
4
4
  PATCH = 0
5
5
  VERSION = [MAJOR, MINOR, PATCH].compact.join('.')
6
6
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: spinel
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.0
4
+ version: 1.0.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - k-shogo
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-02-09 00:00:00.000000000 Z
11
+ date: 2015-03-03 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: redis