moblove 0.0.1 → 0.0.2

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.
@@ -1,7 +1,7 @@
1
1
  class MobileGenerator < Rails::Generators::Base
2
2
 
3
3
  source_root File.expand_path('../templates', __FILE__)
4
- argument :layout_file, :type => :string, :default => "application"
4
+ argument :layout_file, :type => :string, :default => "application"
5
5
  class_option :stylesheets, :type => :boolean, :default => true, :desc => "Including stylesheet files."
6
6
 
7
7
  def generate_html
@@ -23,7 +23,7 @@ class MobileGenerator < Rails::Generators::Base
23
23
  end
24
24
 
25
25
  def stylesheet_files
26
- Dir["lib/generators/mobile/templates/*.css"]
26
+ Dir["#{File.dirname(__FILE__)}/templates/*.css"]
27
27
  end
28
28
 
29
29
  end
@@ -4,10 +4,10 @@
4
4
  <meta charset="utf-8">
5
5
  <title><%= layout_file.camelize %></title>
6
6
  <% if options.stylesheets? %>
7
- <link rel="stylesheet" href="css/base.min.css" media="all">
8
- <link rel="stylesheet" href="css/base.layout.css" media="(min-width: 900px)">
9
- <link rel="stylesheet" href="css/mobile.min.css" media="only screen and (max-width: 800px)">
10
- <link rel="stylesheet" href="css/mobile.landscape.css" media="only screen and (orientation:landscape) and (max-width: 800px)">
7
+ <link rel="stylesheet" href="/stylesheets/base.min.css" media="all">
8
+ <link rel="stylesheet" href="/stylesheets/base.layout.css" media="(min-width: 900px)">
9
+ <link rel="stylesheet" href="/stylesheets/mobile.min.css" media="only screen and (max-width: 800px)">
10
+ <link rel="stylesheet" href="/stylesheets/mobile.landscape.css" media="only screen and (orientation:landscape) and (max-width: 800px)">
11
11
  <% end %>
12
12
 
13
13
  <meta name=viewport content="width=device-width, initial-scale=1.0, minimum-scale=0.5 maximum-scale=1.0">
@@ -1,3 +1,3 @@
1
1
  module Moblove
2
- VERSION = "0.0.1"
2
+ VERSION = "0.0.2"
3
3
  end
metadata CHANGED
@@ -1,24 +1,16 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: moblove
3
3
  version: !ruby/object:Gem::Version
4
- hash: 29
5
- prerelease: false
6
- segments:
7
- - 0
8
- - 0
9
- - 1
10
- version: 0.0.1
4
+ prerelease:
5
+ version: 0.0.2
11
6
  platform: ruby
12
7
  authors:
13
- - !binary |
14
- w5Ztw7xyIMOWemtpcg==
15
-
8
+ - "\xC3\x96m\xC3\xBCr \xC3\x96zkir"
16
9
  autorequire:
17
10
  bindir: bin
18
11
  cert_chain: []
19
12
 
20
- date: 2011-05-17 00:00:00 +02:00
21
- default_executable:
13
+ date: 2011-05-21 00:00:00 Z
22
14
  dependencies: []
23
15
 
24
16
  description: moblove helps you create mobile webapps by automatically creating templates ans styles that are optimized for mobile devices
@@ -45,7 +37,6 @@ files:
45
37
  - lib/moblove.rb
46
38
  - lib/moblove/version.rb
47
39
  - moblove.gemspec
48
- has_rdoc: true
49
40
  homepage: ""
50
41
  licenses: []
51
42
 
@@ -59,23 +50,17 @@ required_ruby_version: !ruby/object:Gem::Requirement
59
50
  requirements:
60
51
  - - ">="
61
52
  - !ruby/object:Gem::Version
62
- hash: 3
63
- segments:
64
- - 0
65
53
  version: "0"
66
54
  required_rubygems_version: !ruby/object:Gem::Requirement
67
55
  none: false
68
56
  requirements:
69
57
  - - ">="
70
58
  - !ruby/object:Gem::Version
71
- hash: 3
72
- segments:
73
- - 0
74
59
  version: "0"
75
60
  requirements: []
76
61
 
77
62
  rubyforge_project: moblove
78
- rubygems_version: 1.3.7
63
+ rubygems_version: 1.7.2
79
64
  signing_key:
80
65
  specification_version: 3
81
66
  summary: Helps you to quickly create webapps for mobile devices