sbsm 1.2.7 → 1.2.8

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: 7ac06f79c0abab4400ca3e02cc81f14812efc908
4
- data.tar.gz: 99c20d773e6423627a4b419b51f6368844bf09fe
3
+ metadata.gz: 77ec17c4b24006fdd35cf6d3c60696d9bd568b50
4
+ data.tar.gz: c7e9a6d6c98f1a552f2f05c86e5b2b7aa3d7e4fc
5
5
  SHA512:
6
- metadata.gz: e4ab8c7aba17a75a17e395e7e199fc2cc146e93562b1a232138bd77ac5855ffc192dc97e6685c093b3132476583eeb8c8e704d0a0d1337faa52b46b9f16a64fb
7
- data.tar.gz: 3d7c7e67fd3df13b56f5889b6de8d1654abb4b6aca2262aa19c3045d80b1257153f8c460e6dc9958aa05f1bde1d35d80f24c6218edc10f4071d85cb860359390
6
+ metadata.gz: 11900eee9a1d8b87a6569ac71edc959320cd6f08298f8a3c0b137826d864343aa7c1f86b5a0d773592cfc95d336546bc837b15cb2c03ccc34b8210b98ed34b8f
7
+ data.tar.gz: be3f84e90fcdbbf7be06bb9d58be6861cc42d7a056a513252d45bb1c398dfdfc1e0f982a469774b98a2bf7def79fb65a4752b2400145eb09d595492fe9379ae9
data/History.txt CHANGED
@@ -1,3 +1,6 @@
1
+ === 1.2.8 / 09.06.2016
2
+ * As we need a DEFAULT_LANGUAGE and DEFAULT_FLAVOR they are forced to 'en', resp. 'sbsm'
3
+
1
4
  === 1.2.7 / 10.05.2016
2
5
 
3
6
  * Migration to Ruby 2.x works now
data/lib/sbsm/session.rb CHANGED
@@ -39,8 +39,8 @@ module SBSM
39
39
  :unsafe_input, :valid_input, :request_path
40
40
  include DRbUndumped
41
41
  PERSISTENT_COOKIE_NAME = "sbsm-persistent-cookie"
42
- DEFAULT_FLAVOR = nil
43
- DEFAULT_LANGUAGE = nil
42
+ DEFAULT_FLAVOR = 'sbsm'
43
+ DEFAULT_LANGUAGE = 'en'
44
44
  DEFAULT_STATE = State
45
45
  DEFAULT_ZONE = nil
46
46
  DRB_LOAD_LIMIT = 255 * 102400
data/lib/sbsm/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module SBSM
2
- VERSION = '1.2.7'
2
+ VERSION = '1.2.8'
3
3
  end
data/test/test_session.rb CHANGED
@@ -344,13 +344,15 @@ class TestSession < Minitest::Test
344
344
  assert_equal('gcc', lnf.flavor)
345
345
  assert_instance_of(SBSM::Lookandfeel, lnf)
346
346
  lnf2 = @session.lookandfeel
347
- assert_equal(lnf, lnf2)
348
- @session.persistent_user_input = {
347
+ assert_equal('gcc', lnf2.flavor)
348
+ assert_equal('en', lnf2.language)
349
+ @session.persistent_user_input = {
349
350
  :flavor => 'other',
350
351
  }
351
352
  lnf3 = @session.lookandfeel
352
353
  assert_instance_of(SBSM::Lookandfeel, lnf)
353
- assert_equal(lnf, lnf3) ## flavor does not change!
354
+ assert_equal('gcc', lnf3.flavor)
355
+ assert_equal('en', lnf3.language) ## flavor does not change!
354
356
  end
355
357
  def test_lookandfeel2
356
358
  session = StubSessionSession.new("test", StubSessionApp.new, StubSessionValidator.new)
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: sbsm
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.2.7
4
+ version: 1.2.8
5
5
  platform: ruby
6
6
  authors:
7
7
  - Masaomi Hatakeyama, Zeno R.R. Davatz
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-05-10 00:00:00.000000000 Z
11
+ date: 2016-06-08 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rack