accountant_clerk 0.4 → 0.5

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: 18c8b35b7c795f62108a3558604c3e4abcbf8e80
4
- data.tar.gz: e918bbfe17b144fa30ffd1cefd19536e7ae38ea6
3
+ metadata.gz: 58fddb8a54c304129e479fa6e8a486f444308b8e
4
+ data.tar.gz: d119808f6a3941f412d756918c545a2a0d9a42c8
5
5
  SHA512:
6
- metadata.gz: 4810231eb05e453457dbde243027017e15a53f209e230462ea0c2079cf9658d0c7aa4bc47957469668c36f7c01edf49d5a2ce683b6cee2af4ca38d462b62e172
7
- data.tar.gz: a0fb26a6ecdeb43d22e7658211d75e22e008914ab2df22359a9a2e4404666877888e79d4e9bd2c4343e703c80e9cb82c9304253aaa2a8b95a3c4c8a2a6a8fa28
6
+ metadata.gz: 826bb581c3340527b53e956373919b82d01c9ce7114dcc41d7886f100722a03593b2a52451ba5bb11a26ca0fabd2c3dfe09e2dc895fe5ae3b631aba045a862dd
7
+ data.tar.gz: fe973490a1d248f2051c4d696192ef3c91612ac6e47b6e7ac7ebcec6cf8ebbfcc02f3c587a5375b4b35bec6ec5a6eeaddac89729e97267eeb49df83bc792ea11
@@ -2,7 +2,7 @@
2
2
  Gem::Specification.new do |s|
3
3
  s.platform = Gem::Platform::RUBY
4
4
  s.name = 'accountant_clerk'
5
- s.version = '0.4'
5
+ s.version = '0.5'
6
6
  s.summary = 'Simple reports that are not so simple anymore'
7
7
  s.required_ruby_version = '>= 1.9.3'
8
8
 
@@ -15,7 +15,7 @@ Gem::Specification.new do |s|
15
15
  s.require_path = 'lib'
16
16
  s.requirements << 'none'
17
17
 
18
- s.add_runtime_dependency 'office_clerk', '~> 0.3'
18
+ s.add_runtime_dependency 'office_clerk', '~> 0.4'
19
19
  s.add_runtime_dependency 'flot-rails', '~> 0.0.6'
20
20
  end
21
21
 
@@ -0,0 +1,4 @@
1
+
2
+ Document.ready? do
3
+ Element.find('.manage_first').html = '<div class="col-md-12"><a href="/manage/report"> Reports </a></div>'
4
+ end
@@ -1,5 +1,4 @@
1
- /*
2
- */
1
+ //= require flotomatic
3
2
 
4
3
  div.flot_choice_label { font-variant: small-caps; font-weight: bold;}
5
4
  div.flot_canvas {width:600px; height:300px}
@@ -1,4 +1,4 @@
1
- class AccountantController < AdminController
1
+ ManageController.class_eval do
2
2
 
3
3
  def report
4
4
  search = params[:q] || {}
@@ -13,7 +13,7 @@
13
13
  });
14
14
  #legend
15
15
  .col-md-3
16
- = search_form_for @search , :url => admin_reports_url , :html => { :class => "well well-small" } do |f|
16
+ = search_form_for @search , :url => manage_reports_url , :html => { :class => "well well-small" } do |f|
17
17
  .form-group.row
18
18
  = f.label :type
19
19
  %br/
data/config/routes.rb CHANGED
@@ -1,5 +1,5 @@
1
1
  OfficeClerk::Engine.routes.draw do
2
- match '/accountant/report' => 'accountant#report' ,
3
- :as => "admin_reports", :via => [:get, :post]
2
+ match '/manage/report' => 'manage#report' ,
3
+ :as => "manage_reports", :via => [:get, :post]
4
4
  end
5
5
 
@@ -16,10 +16,9 @@ module AccountantClerk
16
16
  Dir.glob(File.join(File.dirname(__FILE__), "../../app/helpers**/*.rb")) do |c|
17
17
  Rails.application.config.cache_classes ? require(c) : load(c)
18
18
  end
19
-
20
- Dir.glob(File.join(File.dirname(__FILE__), "../../app/overrides/*.rb")) do |c|
21
- Rails.application.config.cache_classes ? require(c) : load(c)
22
- end
19
+ end
20
+ initializer "office.assets.precompile", :group => :all do |app|
21
+ app.config.assets.precompile += ["office_*"]
23
22
  end
24
23
 
25
24
  config.to_prepare &method(:activate).to_proc
@@ -1,2 +1,14 @@
1
1
  require "flot-rails"
2
2
  require 'accountant_clerk/engine'
3
+
4
+ BigDecimal.class_eval do
5
+ def to_json(options = {})
6
+ self.to_f.to_json(options)
7
+ end
8
+ end
9
+
10
+ Time.class_eval do
11
+ def week
12
+ self.day / 7
13
+ end
14
+ end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: accountant_clerk
3
3
  version: !ruby/object:Gem::Version
4
- version: '0.4'
4
+ version: '0.5'
5
5
  platform: ruby
6
6
  authors:
7
7
  - Torsten Ruger
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-11-17 00:00:00.000000000 Z
11
+ date: 2014-11-19 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: office_clerk
@@ -16,14 +16,14 @@ dependencies:
16
16
  requirements:
17
17
  - - "~>"
18
18
  - !ruby/object:Gem::Version
19
- version: '0.3'
19
+ version: '0.4'
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
24
  - - "~>"
25
25
  - !ruby/object:Gem::Version
26
- version: '0.3'
26
+ version: '0.4'
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: flot-rails
29
29
  requirement: !ruby/object:Gem::Requirement
@@ -48,14 +48,13 @@ files:
48
48
  - LICENSE
49
49
  - README.md
50
50
  - accountant_clerk.gemspec
51
- - app/assets/javascripts/accountant_clerk.js
51
+ - app/assets/javascripts/accountant_office.js.rb
52
52
  - app/assets/javascripts/flotomatic.js
53
- - app/assets/stylesheets/accountant_clerk.css
53
+ - app/assets/stylesheets/accountant_office.css
54
54
  - app/assets/stylesheets/flotomatic.css
55
- - app/controllers/accountant_controller.rb
55
+ - app/controllers/manage_controller_decorator.rb
56
56
  - app/helpers/reports_helper.rb
57
- - app/models/array_decorator.rb
58
- - app/views/accountant/report.html.haml
57
+ - app/views/manage/report.html.haml
59
58
  - config/locales/en.yml
60
59
  - config/routes.rb
61
60
  - lib/accountant_clerk.rb
File without changes
@@ -1,11 +0,0 @@
1
- BigDecimal.class_eval do
2
- def to_json(options = {})
3
- self.to_f.to_json(options)
4
- end
5
- end
6
-
7
- Time.class_eval do
8
- def week
9
- self.day / 7
10
- end
11
- end