redmine-per_user_status 0.0.2 → 0.1.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: 237f6295d21bc48cac6eb8b2e3c705907a0e2b6a
4
- data.tar.gz: aa97ea8027717538f437b7d6437656ed022e6f35
3
+ metadata.gz: 1a4d9ded23a9c584e2b02d4782ddde974b742b48
4
+ data.tar.gz: d0f6f38afcec20cd8bb5651dba8a3bc337fa4adc
5
5
  SHA512:
6
- metadata.gz: 5b67ac46e412c2d1be344ebcc98a14f5c2c83e5d14cefea6fbc342f6f60b8834b095d6c4aea40b9e59dde01366c288767948dd775c221e5ac8a2b478502ef5f2
7
- data.tar.gz: ecd92717ee48d4df2b39187dc8a65d4f95b76e168588d445b08f4c4cd6f249fe6722ce1ed78c2aec9afd1f316e0f19d63b2f69bac752c287d7273ef4532ef306
6
+ metadata.gz: 91cc3a155fcb6b5b283e42d7fd1a3da6e2b44f577d9aa258c39448c38ffc451a8b73f4d53345f4dbcb89332673c60f5b0b8561a72f7f01970b11e961481b6fd8
7
+ data.tar.gz: 4e0a9f275142bc7b007be7c808aa6bb15913f9034f75bd7ccea205a7b239952a3dfa140e960336efe263dbfa2a8bcea44b8744c1a44c0678e69e3217e6a849bb
data/README.md CHANGED
@@ -34,7 +34,7 @@ $ bundle
34
34
  This plugin ships with a migration. To update the database run:
35
35
 
36
36
  ```
37
- $ rake redmine:plugins:migrate
37
+ $ rake db:migrate
38
38
  ```
39
39
 
40
40
  Restart the Redmine application
@@ -6,5 +6,9 @@ module PerUserStatus
6
6
  config.to_prepare do
7
7
  RedminePlugin.new
8
8
  end
9
+
10
+ initializer :append_migrations do |app|
11
+ app.config.paths["db/migrate"].concat config.paths["db/migrate"].expanded
12
+ end
9
13
  end
10
14
  end
@@ -7,18 +7,10 @@ module PerUserStatus
7
7
 
8
8
  def initialize
9
9
  register!
10
- patch_migration_directory!
11
10
  boot!
12
11
  mirror_assets!
13
12
  end
14
13
 
15
- # As this plugin is realized as a gem Redmine won't detect the
16
- # migration automatically.
17
- # @return [String] Absolute path to "db/migrate"
18
- def self.migration_directory
19
- File.expand_path("../../../db/migrate", __FILE__)
20
- end
21
-
22
14
  private
23
15
 
24
16
  def register!
@@ -38,14 +30,6 @@ module PerUserStatus
38
30
  Patches.apply!
39
31
  end
40
32
 
41
- def patch_migration_directory!
42
- @plugin.instance_eval do
43
- def migration_directory
44
- ::PerUserStatus::RedminePlugin.migration_directory
45
- end
46
- end
47
- end
48
-
49
33
  def mirror_assets!
50
34
  @plugin.mirror_assets
51
35
  end
@@ -1,3 +1,3 @@
1
1
  module PerUserStatus
2
- VERSION = "0.0.2"
2
+ VERSION = "0.1.0"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: redmine-per_user_status
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.2
4
+ version: 0.1.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jonas Thiel
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-05-12 00:00:00.000000000 Z
11
+ date: 2015-05-19 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails
@@ -127,7 +127,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
127
127
  version: '0'
128
128
  requirements: []
129
129
  rubyforge_project:
130
- rubygems_version: 2.2.2
130
+ rubygems_version: 2.4.6
131
131
  signing_key:
132
132
  specification_version: 4
133
133
  summary: Allows users to set a custom status which will be displayed next to their