rails-presenter 0.1.1

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: e7ed311356ca81678f2697203e4608c1a78493f5
4
+ data.tar.gz: 68e2483165a2a547dab1c7812d7e053efe892b94
5
+ SHA512:
6
+ metadata.gz: 014f53391b32c51b37a2c2429c842dd4d53e53a7ce7fe3bea44a965d65dde3aa304b7116f34f04a94c335566d3309e2d1b0314fbbfb6324c15a9fa4090f0bd07
7
+ data.tar.gz: 8f22d5422d42c0cd03228c7994b19940cab4cac8f0f9d1fd81689f41f4dcf0dd9b60fc57060c048e3dc9e3df0b8d97561cd194704b8a2fa323069cfdf07b1946
@@ -0,0 +1 @@
1
+ require_relative 'rails_presenter'
@@ -0,0 +1,6 @@
1
+ require "rails_presenter/version"
2
+ require "rails_presenter/base"
3
+
4
+ module RailsPresenter
5
+ # Your code goes here...
6
+ end
@@ -0,0 +1,10 @@
1
+ class RailsPresenter::Base
2
+ include Sprockets::Rails::Helper
3
+ def initialize
4
+ self.debug_assets = Rails.application.config.assets.debug
5
+ self.digest_assets = Rails.application.config.assets.digest
6
+ self.assets_prefix = Rails.application.config.assets.prefix
7
+ self.assets_environment = Rails.application.assets if Rails.application.config.assets.compile
8
+ self.assets_manifest = Rails.application.assets_manifest
9
+ end
10
+ end
@@ -0,0 +1,3 @@
1
+ module RailsPresenter
2
+ VERSION = "0.1.1"
3
+ end
metadata ADDED
@@ -0,0 +1,120 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: rails-presenter
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.1.1
5
+ platform: ruby
6
+ authors:
7
+ - Mathieu Jobin
8
+ autorequire:
9
+ bindir: bin
10
+ cert_chain: []
11
+ date: 2014-12-24 00:00:00.000000000 Z
12
+ dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: bundler
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - "~>"
18
+ - !ruby/object:Gem::Version
19
+ version: '1.7'
20
+ type: :development
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - "~>"
25
+ - !ruby/object:Gem::Version
26
+ version: '1.7'
27
+ - !ruby/object:Gem::Dependency
28
+ name: rake
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - "~>"
32
+ - !ruby/object:Gem::Version
33
+ version: '10.0'
34
+ type: :development
35
+ prerelease: false
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - "~>"
39
+ - !ruby/object:Gem::Version
40
+ version: '10.0'
41
+ - !ruby/object:Gem::Dependency
42
+ name: rails
43
+ requirement: !ruby/object:Gem::Requirement
44
+ requirements:
45
+ - - '='
46
+ - !ruby/object:Gem::Version
47
+ version: 4.1.8
48
+ type: :development
49
+ prerelease: false
50
+ version_requirements: !ruby/object:Gem::Requirement
51
+ requirements:
52
+ - - '='
53
+ - !ruby/object:Gem::Version
54
+ version: 4.1.8
55
+ - !ruby/object:Gem::Dependency
56
+ name: rspec-rails
57
+ requirement: !ruby/object:Gem::Requirement
58
+ requirements:
59
+ - - "~>"
60
+ - !ruby/object:Gem::Version
61
+ version: '2.99'
62
+ type: :development
63
+ prerelease: false
64
+ version_requirements: !ruby/object:Gem::Requirement
65
+ requirements:
66
+ - - "~>"
67
+ - !ruby/object:Gem::Version
68
+ version: '2.99'
69
+ - !ruby/object:Gem::Dependency
70
+ name: sqlite3
71
+ requirement: !ruby/object:Gem::Requirement
72
+ requirements:
73
+ - - "~>"
74
+ - !ruby/object:Gem::Version
75
+ version: '1.3'
76
+ type: :development
77
+ prerelease: false
78
+ version_requirements: !ruby/object:Gem::Requirement
79
+ requirements:
80
+ - - "~>"
81
+ - !ruby/object:Gem::Version
82
+ version: '1.3'
83
+ description: it should ease the pain of creating a presenter that requires to access
84
+ Rails helper methods
85
+ email:
86
+ - mathieu@justbudget.com
87
+ executables: []
88
+ extensions: []
89
+ extra_rdoc_files: []
90
+ files:
91
+ - lib/rails-presenter.rb
92
+ - lib/rails_presenter.rb
93
+ - lib/rails_presenter/base.rb
94
+ - lib/rails_presenter/version.rb
95
+ homepage: https://github.com/somekool/rails-presenter
96
+ licenses:
97
+ - GPLv3
98
+ - MIT
99
+ metadata: {}
100
+ post_install_message:
101
+ rdoc_options: []
102
+ require_paths:
103
+ - lib
104
+ required_ruby_version: !ruby/object:Gem::Requirement
105
+ requirements:
106
+ - - ">="
107
+ - !ruby/object:Gem::Version
108
+ version: '0'
109
+ required_rubygems_version: !ruby/object:Gem::Requirement
110
+ requirements:
111
+ - - ">="
112
+ - !ruby/object:Gem::Version
113
+ version: '0'
114
+ requirements: []
115
+ rubyforge_project:
116
+ rubygems_version: 2.2.2
117
+ signing_key:
118
+ specification_version: 4
119
+ summary: RailsPresenter::Base class
120
+ test_files: []