card 1.15.3 → 1.15.4

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: 035ff8a2c3e11faad9581ec2fd64be55f16e818c
4
- data.tar.gz: 651477978a4542938c382b06bdf22bc8b9d0d11f
3
+ metadata.gz: 4dc15d9c2c0968a351432221cb47274d695515c9
4
+ data.tar.gz: 006311ea9e42182b47adc6e3a1ed434e47239c54
5
5
  SHA512:
6
- metadata.gz: 124d599852883b45e3fab2667dcd0e993d2f5ca58a8bae4ca97e4699d9a1b57b6b849b694f868e0dbb07d542bf0343916e6b093658cb6d0c6891d0d04a3f37c2
7
- data.tar.gz: a99c73da160d7cb3b905667fda01bbbb91250d7da656179ea5daad377a16cd262db755bea0fda9ac7db5597bac1c51f36a6c6eda4ee01ed45b8c157562e2e34d
6
+ metadata.gz: 897cf06f078a5deef931ec1b38d70c1690b3f97943f58987789e33c1dbea8a9d46b89c53d123196b35cb00b8b05d7c92c2fa3c8b6d6718de1863ee7f2276f217
7
+ data.tar.gz: a9e1cd1a88f3da9b79b9b3b011d48e5ea64650b4e5f35945e263cd5bdc8fc14563c6f463c5acaed93f30d03a46bd01b0345e8bb076f5423845b31cc8bfa538fa
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.15.3
1
+ 1.15.4
@@ -2,7 +2,8 @@
2
2
 
3
3
  class AddSessionCardtype < Card::CoreMigration
4
4
  def up
5
- Card.create! :name=>'Session', :type_code=>:cardtype, :codename=>'session',
5
+ session_card_name = Card.exists?( 'Session' ) ? 'BrowserSession' : 'Session'
6
+ Card.create! :name=>session_card_name, :type_code=>:cardtype, :codename=>'session',
6
7
  :subcards=>{'+description'=>{:content=>'Session cards are for non-permanent content.
7
8
  They are not stored in the database and can have different values for different users.
8
9
  You can use a Session card to keep track of certain state of a particular user like the content
@@ -176,7 +176,7 @@ format :html do
176
176
  end
177
177
  tab_panel tab_buttons, tab_panes, args[:tab_type]
178
178
  end
179
- def default_tab_args args
179
+ def default_tabs_args args
180
180
  args[:tab_type] ||= 'tabs'
181
181
  end
182
182
 
@@ -215,7 +215,7 @@ format :html do
215
215
  end
216
216
 
217
217
  def tab_button target, text, active=false, link_attr={}
218
- link = link_to text, target, link_attr.merge('role'=>'tab','data-toggle'=>'tab')
218
+ link = link_to fancy_title(text), target, link_attr.merge('role'=>'tab','data-toggle'=>'tab')
219
219
  li_args = { :role => :presentation }
220
220
  li_args[:class] = 'active' if active
221
221
  content_tag :li, link, li_args
@@ -5,12 +5,12 @@ def select_action_by_params params
5
5
  end
6
6
 
7
7
  def find_action_by_params args
8
- case
8
+ case
9
9
  when args[:rev]
10
10
  nth_action args[:rev]
11
11
  when args[:rev_id]
12
- if action = Action.fetch(args[:rev_id]) and action.card_id == id
13
- action
12
+ if action = Action.fetch(args[:rev_id]) and action.card_id == id
13
+ action
14
14
  end
15
15
  end
16
16
  end
@@ -37,7 +37,7 @@ end
37
37
  def delete_old_actions
38
38
  Card::TRACKED_FIELDS.each do |field|
39
39
  # assign previous changes on each tracked field to the last action
40
- if (not last_action.change_for(field).present?) and (last_change = last_change_on(field))
40
+ if (la=last_action) && !la.change_for(field).present? && (last_change = last_change_on(field))
41
41
  last_change = Card::Change.find(last_change.id) # last_change comes as readonly record
42
42
  last_change.update_attributes!(:card_action_id=>last_action_id)
43
43
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: card
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.15.3
4
+ version: 1.15.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ethan McCutchen
@@ -11,7 +11,7 @@ authors:
11
11
  autorequire:
12
12
  bindir: bin
13
13
  cert_chain: []
14
- date: 2015-06-04 00:00:00.000000000 Z
14
+ date: 2015-06-08 00:00:00.000000000 Z
15
15
  dependencies:
16
16
  - !ruby/object:Gem::Dependency
17
17
  name: smartname