rmvc 2.0.0 → 2.1.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/lib/rmvc.rb +17 -17
  3. metadata +1 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: ff6b9d591547b9836f3826d80206c24997082aee
4
- data.tar.gz: 153ea70524ee43fad17368dbdf5be1e2ae379068
3
+ metadata.gz: e11c29f6e5d5e12c3994cef74d722368c1f884ab
4
+ data.tar.gz: dfb2d7bfc9119d2fcc9d9a3328b7cedee767f626
5
5
  SHA512:
6
- metadata.gz: 9c0b06f833c8bc2b0c44e71f13a98af85a4d2dff069c3660e7d8f380661df5e838a8d219e2cdc5a031e0346174a236302ee6caea6e2c13f0c3a100e48d7f7585
7
- data.tar.gz: 7319566d1bdc3efc52be2c2341ca7153abdd598652d3cf1151e05b53011a999212d65ceec2b44fcb0761fe3808fcb49da9ef494eeaa5c43f56d2a8ca20463684
6
+ metadata.gz: fe9ab40f6a6ad978e22150d57fda34848462056cbeaa457e00622a8a9cd1b4a846ee91bae1ec6b19bb1bd677695b8a91f1ce06df6d1d975a9c7f12caf6fa939b
7
+ data.tar.gz: 25b0c1e3b1cca73a8610710d92d11ac92486593b2819ee954819b332a4b5ddca5f3678a2478806964a615f0ce4687b085b5d2a073b43ec36e3096c185a54e875
data/lib/rmvc.rb CHANGED
@@ -190,34 +190,34 @@ module RMVC
190
190
  # Helper for creating a controller
191
191
  def self.createController(controllerName)
192
192
  controllerCap = controllerName.capitalize
193
- "require './app/models/#{controllerName}'\n
194
- require './app/views/#{controllerName}'\n
195
- class #{controllerCap}Controller\n
193
+ "require './app/models/#{controllerName}'
194
+ require './app/views/#{controllerName}'
195
+ class #{controllerCap}Controller
196
196
  class << self
197
- #Add your variables here!\n
198
- attr_accessor :name\n
199
- end\n
200
- @name = \"James!\"\n
201
- def self.main\n
202
- #{controllerCap}View.load\n
203
- end\n
197
+ #Add your variables here!
198
+ attr_accessor :name
199
+ end
200
+ @name = \"James!\"
201
+ def self.main
202
+ #{controllerCap}View.load
203
+ end
204
204
  end\n"
205
205
  end
206
206
  # Helper for creating a view
207
207
  def self.createView(viewName, controllerName)
208
208
  viewCap = viewName.capitalize
209
- "require './app/controllers/#{controllerName}_controller'\n
210
- class #{viewCap}View\n
211
- def self.load\n
212
- puts \"Hello, hello!\"\n
213
- end\n
209
+ "require './app/controllers/#{controllerName}_controller'
210
+ class #{viewCap}View
211
+ def self.load
212
+ puts \"Hello, hello!\"
213
+ end
214
214
  end\n"
215
215
  end
216
216
 
217
217
  # Helper for creating a model
218
218
  def self.createModel(modelName)
219
- "require './app/controllers/#{modelName}_controller'\n
220
- class #{modelName.capitalize}Model\n
219
+ "require './app/controllers/#{modelName}_controller'
220
+ class #{modelName.capitalize}Model
221
221
  end\n"
222
222
  end
223
223
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rmvc
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.0.0
4
+ version: 2.1.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Catbuntu