public
Rubygem
Fork of mislav/will_paginate
Description: Most awesome pagination solution for Rails
Homepage: http://github.com/mislav/will_paginate/wikis
Clone URL: git://github.com/chriseppstein/will_paginate.git
Search Repo:
goodbye, '.gemified'. we'll miss you
mislav (author)
Sat Apr 26 09:33:28 -0700 2008
commit  54bc63e86635a7b44539a2a550b726d1e4353462
tree    e5e7fb4e9e0eeeea2d5a999d8e9e53fc94668c99
parent  3334327b6a6ab8f46e29f88c59449f8ba4583833
...
1
2
3
4
5
6
7
8
9
...
 
 
 
 
 
 
 
 
 
0
@@ -1,10 +1 @@
0
----
0
-:email: mislav.marohnic@gmail.com
0
-:has_rdoc: true
0
-:homepage: http://github.com/mislav/will_paginate
0
-:name: will_paginate
0
-:rubyforge_project: will-paginate
0
-:version: 2.2.3
0
-:author: "Mislav Marohni\xC4\x87"
0
-:summary: Most awesome pagination solution for Rails
...
72
73
74
 
 
 
75
76
77
78
 
79
80
81
82
...
84
85
86
87
88
89
90
91
 
 
 
 
 
 
 
 
 
92
93
94
95
96
97
...
72
73
74
75
76
77
78
79
80
 
81
82
83
84
85
...
87
88
89
 
 
 
 
 
90
91
92
93
94
95
96
97
98
99
 
 
100
101
102
0
@@ -72,10 +72,13 @@
0
   rdoc.options << '--webcvs=http://github.com/mislav/will_paginate/tree/master/'
0
 end
0
 
0
+desc %{Update ".manifest" with the latest list of project filenames. Respect\
0
+.gitignore by excluding everything that git ignores. Update `files` and\
0
+`test_files` arrays in "*.gemspec" file if it's present.}
0
 task :manifest do
0
   list = Dir['**/*'].sort
0
   spec_file = Dir['*.gemspec'].first
0
- list -= [spec_file]
0
+ list -= [spec_file] if spec_file
0
   
0
   File.read('.gitignore').each_line do |glob|
0
     glob = glob.chomp.sub(/^\//, '')
0
0
@@ -84,14 +87,16 @@
0
     puts "excluding #{glob}"
0
   end
0
 
0
- spec = File.read spec_file
0
- spec.gsub! /^(\s* s.(test_)?files \s* = \s* )( \[ [^\]]* \] | %w\( [^)]* \) )/mx do
0
- assignment = $1
0
- bunch = $2 ? list.grep(/^test\//) : list
0
- '%s%%w(%s)' % [assignment, bunch.join(' ')]
0
+ if spec_file
0
+ spec = File.read spec_file
0
+ spec.gsub! /^(\s* s.(test_)?files \s* = \s* )( \[ [^\]]* \] | %w\( [^)]* \) )/mx do
0
+ assignment = $1
0
+ bunch = $2 ? list.grep(/^test\//) : list
0
+ '%s%%w(%s)' % [assignment, bunch.join(' ')]
0
+ end
0
+
0
+ File.open(spec_file, 'w') {|f| f << spec }
0
   end
0
-
0
- File.open(spec_file, 'w') {|f| f << spec }
0
   File.open('.manifest', 'w') {|f| f << list.join("\n") }
0
 end
0
 

Comments

    No one has commented yet.