Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Migrates definitely to Rails 3

  • Loading branch information...
commit d73a9b2f8a63eff7e4c21efc050b01d204a41249 1 parent 38f6e2c
@burisu burisu authored
Showing with 282 additions and 1,671 deletions.
  1. +2 −2 .gitignore
  2. +0 −1  Gemfile
  3. +30 −0 Gemfile
  4. +0 −1  Gemfile.lock
  5. +102 −0 Gemfile.lock
  6. +0 −1  Rakefile
  7. +7 −0 Rakefile
  8. +2 −2 app/assets/themes/tekyla/stylesheets/list.css
  9. +1 −1  app/assets/themes/tekyla/stylesheets/screen.css
  10. +9 −6 app/controllers/application_controller.rb
  11. +3 −1 app/controllers/companies_controller.rb
  12. +1 −1  app/controllers/transports_controller.rb
  13. +1 −1  app/helpers/application_helper.rb
  14. +0 −5 app/models/company.rb
  15. +1 −1  app/models/product.rb
  16. +11 −11 app/models/user.rb
  17. +1 −1  app/views/journals/reports.html.haml
  18. +0 −1  config
  19. +0 −139 config-2.3/boot.rb
  20. +0 −1  config-2.3/database.mysql.yml
  21. +0 −1  config-2.3/database.postgresql.yml
  22. +0 −1  config-2.3/database.sqlite3.yml
  23. +0 −1  config-2.3/database.sqlserver.yml
  24. +0 −58 config-2.3/environment.rb
  25. +0 −19 config-2.3/environments/development.rb
  26. +0 −31 config-2.3/environments/production.rb
  27. +0 −31 config-2.3/environments/test.rb
  28. +0 −63 config-2.3/gemfile.lock.rb
  29. +0 −35 config-2.3/gemfile.rb
  30. +0 −1  config-2.3/initializers/10-patches.rb
  31. +0 −1  config-2.3/initializers/formize.rb
  32. +0 −7 config-2.3/initializers/gems.rb
  33. +0 −14 config-2.3/initializers/inflections.rb
  34. +0 −1  config-2.3/initializers/mime_types.rb
  35. +0 −19 config-2.3/initializers/new_rails_defaults.rb
  36. +0 −193 config-2.3/initializers/rails-3_compatibility.rb
  37. +0 −1  config-2.3/locales
  38. +0 −1  config-2.3/menus.yml
  39. +0 −1  config-2.3/preferences.csv
  40. +0 −20 config-2.3/preinitializer.rb
  41. +0 −7 config-2.3/rack.rb
  42. +0 −10 config-2.3/rakefile.rb
  43. +0 −1  config-2.3/rights.yml
  44. +0 −113 config-2.3/routes.rb
  45. +0 −1  config-3
  46. +0 −15 config-3.0/boot.rb
  47. +0 −112 config-3.0/gemfile.lock.rb
  48. +0 −34 config-3.0/gemfile.rb
  49. +0 −4 config-3.0/rack.rb
  50. +0 −8 config-3.0/rakefile.rb
  51. +0 −1  config.ru
  52. +4 −0 config.ru
  53. +6 −8 {config-3.0 → config}/application.rb
  54. +10 −0 config/boot.rb
  55. 0  {config-3.0 → config}/currencies.yml
  56. 0  {config-3.0 → config}/database.mysql.yml
  57. 0  {config-3.0 → config}/database.postgresql.yml
  58. 0  {config-3.0 → config}/database.sqlite3.yml
  59. 0  {config-3.0 → config}/database.sqlserver.yml
  60. 0  {config-3.0 → config}/environment.rb
  61. 0  {config-3.0 → config}/environments/development.rb
  62. 0  {config-3.0 → config}/environments/production.rb
  63. 0  {config-3.0 → config}/environments/test.rb
  64. 0  {config-3.0 → config}/initializers/10-patches.rb
  65. 0  {config-3.0 → config}/initializers/backtrace_silencers.rb
  66. +1 −1  {config-3.0 → config}/initializers/formize.rb
  67. 0  {config-3.0 → config}/initializers/gems.rb
  68. 0  {config-3.0 → config}/initializers/inflections.rb
  69. 0  {config-3.0 → config}/initializers/mime_types.rb
  70. 0  {config-3.0 → config}/initializers/new_rails_defaults.rb
  71. 0  {config-3.0 → config}/initializers/secret_token.rb
  72. 0  {config-3.0 → config}/initializers/session_store.rb
  73. 0  {config-3.0 → config}/locales/arb/accounting.yml
  74. 0  {config-3.0 → config}/locales/arb/action.yml
  75. 0  {config-3.0 → config}/locales/arb/countries.yml
  76. 0  {config-3.0 → config}/locales/arb/i18n.rb
  77. 0  {config-3.0 → config}/locales/arb/languages.yml
  78. 0  {config-3.0 → config}/locales/arb/models.yml
  79. 0  {config-3.0 → config}/locales/arb/rights.yml
  80. 0  {config-3.0 → config}/locales/arb/support.yml
  81. 0  {config-3.0 → config}/locales/eng/accounting.yml
  82. 0  {config-3.0 → config}/locales/eng/action.yml
  83. 0  {config-3.0 → config}/locales/eng/countries.yml
  84. 0  {config-3.0 → config}/locales/eng/help/accounts-index.txt
  85. 0  {config-3.0 → config}/locales/eng/help/journals-bookkeep.txt
  86. 0  {config-3.0 → config}/locales/eng/i18n.rb
  87. 0  {config-3.0 → config}/locales/eng/languages.yml
  88. 0  {config-3.0 → config}/locales/eng/models.yml
  89. 0  {config-3.0 → config}/locales/eng/prints/balance_sheet.xml
  90. 0  {config-3.0 → config}/locales/eng/prints/deposit.xml
  91. 0  {config-3.0 → config}/locales/eng/prints/entity.xml
  92. 0  {config-3.0 → config}/locales/eng/prints/general_journal.xml
  93. 0  {config-3.0 → config}/locales/eng/prints/general_ledger.xml
  94. 0  {config-3.0/locales/fra → config/locales/eng}/prints/income_statement.xml
  95. 0  {config-3.0/locales/fra → config/locales/eng}/prints/inventory.xml
  96. 0  {config-3.0 → config}/locales/eng/prints/journal.xml
  97. 0  {config-3.0/locales/fra → config/locales/eng}/prints/order_preparation.xml
  98. 0  {config-3.0 → config}/locales/eng/prints/purchase_order.xml
  99. 0  {config-3.0 → config}/locales/eng/prints/sales_invoice.xml
  100. 0  {config-3.0 → config}/locales/eng/prints/sales_order.xml
  101. 0  {config-3.0/locales/fra → config/locales/eng}/prints/stocks.xml
  102. 0  {config-3.0 → config}/locales/eng/prints/transport.xml
  103. 0  {config-3.0 → config}/locales/eng/rights.yml
  104. 0  {config-3.0 → config}/locales/eng/support.yml
  105. 0  {config-3.0 → config}/locales/fra/accounting.yml
  106. 0  {config-3.0 → config}/locales/fra/action.yml
  107. 0  {config-3.0 → config}/locales/fra/countries.yml
  108. 0  {config-3.0 → config}/locales/fra/help/accounts-index.txt
  109. 0  {config-3.0 → config}/locales/fra/help/accounts-mark.txt
  110. 0  {config-3.0 → config}/locales/fra/help/accounts-reconciliation.txt
  111. 0  {config-3.0 → config}/locales/fra/help/areas-index.txt
  112. 0  {config-3.0 → config}/locales/fra/help/bank_statements-index.txt
  113. 0  {config-3.0 → config}/locales/fra/help/bank_statements-point.txt
  114. 0  {config-3.0 → config}/locales/fra/help/cashes-index.txt
  115. 0  {config-3.0 → config}/locales/fra/help/contacts-index.txt
  116. 0  {config-3.0 → config}/locales/fra/help/custom_field_choices-index.txt
  117. +1 −1  {config-3.0 → config}/locales/fra/help/custom_fields-index.txt
  118. 0  {config-3.0 → config}/locales/fra/help/dashboards-accountancy.txt
  119. 0  {config-3.0 → config}/locales/fra/help/dashboards-general.txt
  120. 0  {config-3.0 → config}/locales/fra/help/dashboards-production.txt
  121. 0  {config-3.0 → config}/locales/fra/help/dashboards-relations.txt
  122. 0  {config-3.0 → config}/locales/fra/help/dashboards-resources.txt
  123. 0  {config-3.0 → config}/locales/fra/help/dashboards-trade.txt
  124. 0  {config-3.0 → config}/locales/fra/help/dashboards-welcome.txt
  125. 0  {config-3.0 → config}/locales/fra/help/delays-index.txt
  126. 0  {config-3.0 → config}/locales/fra/help/departments-index.txt
  127. 0  {config-3.0 → config}/locales/fra/help/deposits-index.txt
  128. 0  {config-3.0 → config}/locales/fra/help/deposits-unvalidateds.txt
  129. 0  {config-3.0 → config}/locales/fra/help/districts-index.txt
  130. 0  {config-3.0 → config}/locales/fra/help/document_templates-index.txt
  131. 0  {config-3.0 → config}/locales/fra/help/documents-print.txt
  132. 0  {config-3.0 → config}/locales/fra/help/entities-export.txt
  133. 0  {config-3.0 → config}/locales/fra/help/entities-import.txt
  134. 0  {config-3.0 → config}/locales/fra/help/entities-index.txt
  135. 0  {config-3.0 → config}/locales/fra/help/entities-merge.txt
  136. 0  {config-3.0 → config}/locales/fra/help/entity_categories-index.txt
  137. 0  {config-3.0 → config}/locales/fra/help/entity_link_natures-index.txt
  138. 0  {config-3.0 → config}/locales/fra/help/entity_links-index.txt
  139. 0  {config-3.0 → config}/locales/fra/help/entity_natures-index.txt
  140. 0  {config-3.0 → config}/locales/fra/help/establishments-index.txt
  141. 0  {config-3.0 → config}/locales/fra/help/event_natures-index.txt
  142. 0  {config-3.0 → config}/locales/fra/help/events-index.txt
  143. 0  {config-3.0 → config}/locales/fra/help/financial_years-close.txt
  144. 0  {config-3.0 → config}/locales/fra/help/financial_years-index.txt
  145. 0  {config-3.0 → config}/locales/fra/help/help-index.txt
  146. 0  {config-3.0 → config}/locales/fra/help/incoming_deliveries-index.txt
  147. 0  {config-3.0 → config}/locales/fra/help/incoming_delivery_modes-index.txt
  148. 0  {config-3.0 → config}/locales/fra/help/incoming_payment_modes-index.txt
  149. 0  {config-3.0 → config}/locales/fra/help/incoming_payment_uses-new.txt
  150. 0  {config-3.0 → config}/locales/fra/help/incoming_payments-index.txt
  151. 0  {config-3.0 → config}/locales/fra/help/inventories-index.txt
  152. 0  {config-3.0 → config}/locales/fra/help/journals-balance.txt
  153. 0  {config-3.0 → config}/locales/fra/help/journals-bookkeep.txt
  154. 0  {config-3.0 → config}/locales/fra/help/journals-close.txt
  155. 0  {config-3.0 → config}/locales/fra/help/journals-general_ledger.txt
  156. 0  {config-3.0 → config}/locales/fra/help/journals-index.txt
  157. 0  {config-3.0 → config}/locales/fra/help/journals-reopen.txt
  158. 0  {config-3.0 → config}/locales/fra/help/land_parcels-index.txt
  159. 0  {config-3.0 → config}/locales/fra/help/listings-index.txt
  160. 0  {config-3.0 → config}/locales/fra/help/mandates-configure.txt
  161. 0  {config-3.0 → config}/locales/fra/help/mandates-index.txt
  162. 0  {config-3.0 → config}/locales/fra/help/myselves-change_password.txt
  163. 0  {config-3.0 → config}/locales/fra/help/myselves-statistics.txt
  164. 0  {config-3.0 → config}/locales/fra/help/observations-index.txt
  165. 0  {config-3.0 → config}/locales/fra/help/operation_natures-index.txt
  166. 0  {config-3.0 → config}/locales/fra/help/operations-index.txt
  167. 0  {config-3.0 → config}/locales/fra/help/operations-unvalidateds.txt
  168. 0  {config-3.0 → config}/locales/fra/help/outgoing_payment_modes-index.txt
  169. 0  {config-3.0 → config}/locales/fra/help/outgoing_payments-index.txt
  170. 0  {config-3.0 → config}/locales/fra/help/prices-import.txt
  171. 0  {config-3.0 → config}/locales/fra/help/prices-index.txt
  172. 0  {config-3.0 → config}/locales/fra/help/prices-new.txt
  173. 0  {config-3.0 → config}/locales/fra/help/product_categories-index.txt
  174. 0  {config-3.0 → config}/locales/fra/help/product_components-index.txt
  175. 0  {config-3.0 → config}/locales/fra/help/products-index.txt
  176. 0  {config-3.0 → config}/locales/fra/help/professions-index.txt
  177. 0  {config-3.0 → config}/locales/fra/help/purchases-index.txt
  178. 0  {config-3.0 → config}/locales/fra/help/resources-employees.txt
  179. 0  {config-3.0 → config}/locales/fra/help/roles-index.txt
  180. 0  {config-3.0 → config}/locales/fra/help/sale_lines-index.txt
  181. 0  {config-3.0 → config}/locales/fra/help/sale_natures-index.txt
  182. 0  {config-3.0 → config}/locales/fra/help/sales-cancel.txt
  183. 0  {config-3.0 → config}/locales/fra/help/sales-index.txt
  184. 0  {config-3.0 → config}/locales/fra/help/sales-statistics.txt
  185. 0  {config-3.0 → config}/locales/fra/help/sequences-index.txt
  186. 0  {config-3.0 → config}/locales/fra/help/settings-about.txt
  187. 0  {config-3.0 → config}/locales/fra/help/settings-backups.txt
  188. 0  {config-3.0 → config}/locales/fra/help/settings-configure.txt
  189. 0  {config-3.0 → config}/locales/fra/help/settings-import.txt
  190. 0  {config-3.0 → config}/locales/fra/help/stock_moves-index.txt
  191. 0  {config-3.0 → config}/locales/fra/help/stock_transfers-confirm.txt
  192. 0  {config-3.0 → config}/locales/fra/help/stock_transfers-index.txt
  193. 0  {config-3.0 → config}/locales/fra/help/stocks-index.txt
  194. 0  {config-3.0 → config}/locales/fra/help/subscription_natures-index.txt
  195. 0  {config-3.0 → config}/locales/fra/help/subscriptions-index.txt
  196. 0  {config-3.0 → config}/locales/fra/help/taxes-index.txt
  197. 0  {config-3.0 → config}/locales/fra/help/tools-index.txt
  198. 0  {config-3.0 → config}/locales/fra/help/trackings-show.txt
  199. 0  {config-3.0 → config}/locales/fra/help/transports-deliveries.txt
  200. 0  {config-3.0 → config}/locales/fra/help/transports-index.txt
  201. 0  {config-3.0 → config}/locales/fra/help/units-index.txt
  202. 0  {config-3.0 → config}/locales/fra/help/users-index.txt
  203. 0  {config-3.0 → config}/locales/fra/help/warehouses-index.txt
  204. 0  {config-3.0 → config}/locales/fra/i18n.rb
  205. 0  {config-3.0 → config}/locales/fra/languages.yml
  206. +5 −5 {config-3.0 → config}/locales/fra/models.yml
  207. 0  {config-3.0 → config}/locales/fra/prints/balance_sheet.xml
  208. 0  {config-3.0 → config}/locales/fra/prints/deposit.xml
  209. 0  {config-3.0 → config}/locales/fra/prints/entity.xml
  210. 0  {config-3.0 → config}/locales/fra/prints/general_journal.xml
  211. 0  {config-3.0 → config}/locales/fra/prints/general_ledger.xml
  212. 0  {config-3.0/locales/eng → config/locales/fra}/prints/income_statement.xml
  213. 0  {config-3.0/locales/eng → config/locales/fra}/prints/inventory.xml
  214. 0  {config-3.0 → config}/locales/fra/prints/journal.xml
  215. 0  {config-3.0/locales/eng → config/locales/fra}/prints/order_preparation.xml
  216. 0  {config-3.0 → config}/locales/fra/prints/purchase_order.xml
  217. 0  {config-3.0 → config}/locales/fra/prints/sales_invoice.xml
  218. 0  {config-3.0 → config}/locales/fra/prints/sales_order.xml
  219. 0  {config-3.0/locales/eng → config/locales/fra}/prints/stocks.xml
  220. 0  {config-3.0 → config}/locales/fra/prints/transport.xml
  221. 0  {config-3.0 → config}/locales/fra/rights.yml
  222. 0  {config-3.0 → config}/locales/fra/support.yml
  223. 0  {config-3.0 → config}/locales/jpn/accounting.yml
  224. 0  {config-3.0 → config}/locales/jpn/action.yml
  225. 0  {config-3.0 → config}/locales/jpn/countries.yml
  226. 0  {config-3.0 → config}/locales/jpn/i18n.rb
  227. 0  {config-3.0 → config}/locales/jpn/languages.yml
  228. 0  {config-3.0 → config}/locales/jpn/models.yml
  229. 0  {config-3.0 → config}/locales/jpn/rights.yml
  230. 0  {config-3.0 → config}/locales/jpn/support.yml
  231. 0  {config-3.0 → config}/locales/spa/accounting.yml
  232. 0  {config-3.0 → config}/locales/spa/action.yml
  233. 0  {config-3.0 → config}/locales/spa/countries.yml
  234. 0  {config-3.0 → config}/locales/spa/i18n.rb
  235. 0  {config-3.0 → config}/locales/spa/languages.yml
  236. 0  {config-3.0 → config}/locales/spa/models.yml
  237. 0  {config-3.0 → config}/locales/spa/rights.yml
  238. 0  {config-3.0 → config}/locales/spa/support.yml
  239. 0  {config-3.0 → config}/menus.yml
  240. 0  {config-3.0 → config}/preferences.csv
  241. 0  {config-3.0 → config}/rights.yml
  242. +41 −34 {config-3.0 → config}/routes.rb
  243. +8 −6 db/schema.rb
  244. BIN  doc/blzee.ttf
  245. BIN  doc/ethnologue.ods
  246. +0 −566 doc/languages.yml
  247. +2 −1  lib/ekylibre/record/company_record.rb
  248. +1 −1  lib/init.rb
  249. +0 −4 script/about
  250. +0 −3  script/console
  251. +0 −3  script/dbconsole
  252. +0 −3  script/destroy
  253. +0 −3  script/generate
  254. +0 −3  script/performance/benchmarker
  255. +0 −3  script/performance/profiler
  256. +0 −3  script/performance/request
  257. +0 −3  script/plugin
  258. +0 −3  script/process/inspector
  259. +0 −3  script/process/reaper
  260. +0 −3  script/process/spawner
  261. +0 −3  script/runner
  262. +0 −3  script/server
  263. +9 −2 test/integration/user_test.rb
  264. +3 −2 test/performance/browsing_test.rb
  265. +2 −2 test/test_helper.rb
  266. 0  tmp/.gitkeep
  267. +10 −10 vendor/plugins/list/lib/list/finders/simple_finder.rb
  268. +8 −8 vendor/plugins/list/lib/list/finders/will_paginate_finder.rb
View
4 .gitignore
@@ -1,9 +1,9 @@
.bundle
db/*.sqlite3
log/*.log
-tmp/*
+tmp/**/*
private/**/*
installer/releases
installer/*.log
-config*/database.yml
+config/database.yml
*~
View
1  Gemfile
View
30 Gemfile
@@ -0,0 +1,30 @@
+source 'http://rubygems.org'
+
+gem 'rails', '3.0.10'
+
+# Bundle edge Rails instead:
+# gem 'rails', :git => 'git://github.com/rails/rails.git'
+
+gem 'haml'
+gem 'fastercsv', :platforms=>[:ruby_18, :mri_18, :mingw_18, :mswin]
+gem 'libxml-ruby', :require=>'libxml' # , '1.1.3'
+gem 'rubyzip', :require=>'zip/zip'
+gem 'will_paginate', '3.0.0'
+gem "exception_notification"
+gem 'state_machine', '0.9.4'
+gem 'formize'
+
+group :development do
+ gem 'ruby-prof'
+ # gem 'ruby-debug'
+ # gem 'ruby-graphviz', '>= 0.9.0'
+end
+
+group :test do
+ gem 'thoughtbot-shoulda', :require => 'shoulda'
+end
+
+gem 'pg'
+gem 'mysql'
+gem 'sqlite3'
+
View
1  Gemfile.lock
View
102 Gemfile.lock
@@ -0,0 +1,102 @@
+GEM
+ remote: http://rubygems.org/
+ specs:
+ abstract (1.0.0)
+ actionmailer (3.0.10)
+ actionpack (= 3.0.10)
+ mail (~> 2.2.19)
+ actionpack (3.0.10)
+ activemodel (= 3.0.10)
+ activesupport (= 3.0.10)
+ builder (~> 2.1.2)
+ erubis (~> 2.6.6)
+ i18n (~> 0.5.0)
+ rack (~> 1.2.1)
+ rack-mount (~> 0.6.14)
+ rack-test (~> 0.5.7)
+ tzinfo (~> 0.3.23)
+ activemodel (3.0.10)
+ activesupport (= 3.0.10)
+ builder (~> 2.1.2)
+ i18n (~> 0.5.0)
+ activerecord (3.0.10)
+ activemodel (= 3.0.10)
+ activesupport (= 3.0.10)
+ arel (~> 2.0.10)
+ tzinfo (~> 0.3.23)
+ activeresource (3.0.10)
+ activemodel (= 3.0.10)
+ activesupport (= 3.0.10)
+ activesupport (3.0.10)
+ arel (2.0.10)
+ builder (2.1.2)
+ erubis (2.6.6)
+ abstract (>= 1.0.0)
+ exception_notification (2.4.1)
+ fastercsv (1.5.4)
+ formize (0.0.8)
+ actionpack
+ activesupport
+ haml (3.1.2)
+ i18n (0.5.0)
+ libxml-ruby (2.2.1)
+ mail (2.2.19)
+ activesupport (>= 2.3.6)
+ i18n (>= 0.4.0)
+ mime-types (~> 1.16)
+ treetop (~> 1.4.8)
+ mime-types (1.16)
+ mysql (2.8.1)
+ pg (0.11.0)
+ polyglot (0.3.2)
+ rack (1.2.3)
+ rack-mount (0.6.14)
+ rack (>= 1.0.0)
+ rack-test (0.5.7)
+ rack (>= 1.0)
+ rails (3.0.10)
+ actionmailer (= 3.0.10)
+ actionpack (= 3.0.10)
+ activerecord (= 3.0.10)
+ activeresource (= 3.0.10)
+ activesupport (= 3.0.10)
+ bundler (~> 1.0)
+ railties (= 3.0.10)
+ railties (3.0.10)
+ actionpack (= 3.0.10)
+ activesupport (= 3.0.10)
+ rake (>= 0.8.7)
+ rdoc (~> 3.4)
+ thor (~> 0.14.4)
+ rake (0.9.2)
+ rdoc (3.9.3)
+ ruby-prof (0.10.8)
+ rubyzip (0.9.4)
+ sqlite3 (1.3.4)
+ state_machine (0.9.4)
+ thor (0.14.6)
+ thoughtbot-shoulda (2.11.1)
+ treetop (1.4.10)
+ polyglot
+ polyglot (>= 0.3.1)
+ tzinfo (0.3.29)
+ will_paginate (3.0.0)
+
+PLATFORMS
+ ruby
+
+DEPENDENCIES
+ exception_notification
+ fastercsv
+ formize
+ haml
+ libxml-ruby
+ mysql
+ pg
+ rails (= 3.0.10)
+ ruby-prof
+ rubyzip
+ sqlite3
+ state_machine (= 0.9.4)
+ thoughtbot-shoulda
+ will_paginate (= 3.0.0)
View
1  Rakefile
View
7 Rakefile
@@ -0,0 +1,7 @@
+# Add your own tasks in files placed in lib/tasks ending in .rake,
+# for example lib/tasks/capistrano.rake, and they will automatically be available to Rake.
+
+require File.expand_path('../config/application', __FILE__)
+require 'rake'
+
+Ekylibre::Application.load_tasks
View
4 app/assets/themes/tekyla/stylesheets/list.css
@@ -1,5 +1,5 @@
/*div.list { margin: 0; padding: 0; width:100%-30px; }*/
-div.list { margin: 0; box-shadow: 0 0 8px rgba(0,0,0,0.2); -moz-box-shadow: 0 0 8px rgba(0,0,0,0.2); -webkit-box-shadow: 0 0 8px rgba(0,0,0,0.2); behavior: url(/pie.htc);}
+div.list { margin: 0; }
table.list { border-collapse: collapse; width:100%; padding:0; margin: 0; /*box-shadow: 0 0 6px #CCC; -moz-box-shadow: 0 0 6px #CCC; -webkit-box-shadow: 0 0 6px #CCC; */}
/*table.list tbody, table.list thead th { border: 1px solid #95b0e4;} /* BACFE6 */
@@ -74,7 +74,7 @@ table.list .spe .list-menu * { font-weight: normal; }
table.list .spe .list-menu a { cursor: pointer; }
table.list .spe .list-menu .list-menu-start { display: block; font-size: 0; color: transparent; text-shadow: none; padding: 4px; width: 16px; height: 16px; background: url(../images/buttons/list-start.png) no-repeat center; }
table.list .spe .list-menu:hover .list-menu-start { background-color: Menu; z-index:5000; position: relative; top: 0px; }
-table.list .spe .list-menu ul { display: none; position:absolute; top: 22px; padding: 1px; margin:0; background: Menu; border:1px solid ButtonShadow; z-index: 1000; box-shadow: 0 0 4px #999; -moz-box-shadow: 0 0 4px #999; -webkit-box-shadow: 0 0 4px #999; }
+table.list .spe .list-menu ul { display: none; position:absolute; top: 22px; padding: 1px; margin:0; background: Menu; border:1px solid ButtonShadow; z-index: 1000; box-shadow: 0 0 4px rgba(0,0,0,0.2); -moz-box-shadow: 0 0 4px rgba(0,0,0,0.2); -webkit-box-shadow: 0 0 4px rgba(0,0,0,0.2); behavior: url(/pie.htc); }
html[dir="ltr"] table.list .spe .list-menu ul { right: -1px;}
html[dir="rtl"] table.list .spe .list-menu ul { left: -1px;}
table.list .spe .list-menu:hover > ul { display: block; }
View
2  app/assets/themes/tekyla/stylesheets/screen.css
@@ -430,7 +430,7 @@ html[dir="rtl"] .toolbar ul > li > a {padding: 2px 20px 2px 2px; background-posi
/*#E7E7E7*/
.tool { margin: 0 -.5px 8px; padding: 4px 6px; background: #DDD url(../images/boss-effect.png) center repeat-x; border: 1px solid #CCC;}
.tool:hover { background: #688ED8; border-color: #688ED8; color: white; z-index: 1000; } /*#3D5C8D */
-a.tool:hover, .tool:hover * { color: white; text-shadow: 1px 1px 1px #555 }
+a.tool:hover, .tool:hover * { color: white; text-shadow: -1px -1px 1px #555 }
a.tool, .tool a { text-decoration: none; color : #555; text-shadow: 1px 1px 1px #FFF; font-weight: bold;}
html[dir="ltr"] .toolbar .tool:first-child, html[dir="rtl"] .toolbar .tool:last-child { -moz-border-radius-bottomleft: 5px; -moz-border-radius-topleft: 5px; }
html[dir="ltr"] .toolbar .tool:last-child, html[dir="rtl"] .toolbar .tool:first-child { -moz-border-radius-bottomright: 5px; -moz-border-radius-topright: 5px; }
View
15 app/controllers/application_controller.rb
@@ -19,7 +19,7 @@
class ApplicationController < ActionController::Base
# helper :all # include all helpers, all the time
- around_filter(:profile) if RAILS_ENV == "development"
+ around_filter(:profile) if Rails.env == "development"
before_filter :no_cache
before_filter :i18nize
before_filter :identify
@@ -29,7 +29,7 @@ class ApplicationController < ActionController::Base
attr_accessor :current_company
layout :dialog_or_not
- if RAILS_ENV == "development"
+ if Rails.env == "development"
# # require_dependency "vendor/plugins/list/init.rb"
# require_dependency "vendor/ogems/formize/lib/formize.rb"
# require_dependency "vendor/ogems/formize/lib/formize/definition.rb"
@@ -432,7 +432,7 @@ def self.call_info_tree(call_info, options={})
# html += "<div class='tit' onclick='$$(\".p#{call_info.object_id}\").each(function(e) {e.toggle()});'>"
# html += "<span class='fil'>"+h(method_info.source_file.gsub(Rails.root.to_s, 'RAILS_ROOT').gsub(Gem.dir, 'GEM_DIR'))+"</span>:<span class='lno'>"+h(method_info.line)+"</span>:<span class='lno'>"+h(call_info.line)+"</span> <span class='cls'>"+h(method_info.klass_name.gsub(regexp, ''))+"</span>&nbsp;<span class='mth'>"+h(method_info.method_name)+"</span>"
- html += "<div class='tit' title='#{h(method_info.source_file.gsub(Rails.root.to_s, 'RAILS_ROOT').gsub(Gem.dir, 'GEM_DIR'))}:#{h(method_info.line)}:#{h(call_info.line)}' onclick='$$(\".p#{call_info.object_id}\").each(function(e) {e.toggle()});'>"
+ html += "<div class='tit' title='#{h(method_info.source_file.gsub(Rails.root.to_s, 'RAILS_ROOT').gsub(Gem.dir, 'GEM_DIR'))}:#{h(method_info.line)} called at line #{h(call_info.line)}' onclick='$$(\".p#{call_info.object_id}\").each(function(e) {e.toggle()});'>"
html += "<span class='fil'><span class='cls'>"+h(method_info.klass_name.gsub(regexp, ''))+"</span>&nbsp;<span class='mth'>"+h(method_info.method_name)+"</span></span>"
html += "<span class='md mdc'>"+percentage.round(1).to_s+"%</span>"
html += "<span class='md mdc'>"+call_info.called.to_s+"&times;</span>"
@@ -467,8 +467,11 @@ def self.method_info_tree(method_info)
def profile()
- yield and return unless params[:profile]
- require 'ruby-prof'
+ unless params[:profile]
+ yield
+ return
+ end
+ # require 'ruby-prof'
RubyProf.measure_mode = RubyProf::PROCESS_TIME
result = RubyProf.profile do
yield
@@ -497,7 +500,7 @@ def profile()
end
end
html += "</small>"
- self.response.body.sub!("</body>", html << "</body>") if self.response.body.is_a?(String)
+ self.response_body = self.response.body.sub("</body>", html + "</body>")
end
end
View
4 app/controllers/companies_controller.rb
@@ -32,8 +32,10 @@ def register
return
end
+
# Test validity
- return unless @my_company.valid? and @user.valid?
+ @user.valid? # Perform validations
+ return unless @my_company.valid? and @user.errors.delete_if{|a| [:company, :role].include?(a)}.keys.empty?
@my_company, @user = Company.create_with_data(params[:my_company], params[:user], params[:demo])
if @my_company.id and @user.id
View
2  app/controllers/transports_controller.rb
@@ -62,7 +62,7 @@ def show
def self.transportable_deliveries_conditions()
code = ""
- code += "c = ['company_id = ?', @current_company.id]\n"
+ code += "c = [\"\#{OutgoingDelivery.table_name}.company_id = ?\", @current_company.id]\n"
code += "if session[:current_transport_id].to_i > 0\n"
code += " c[0] += ' AND (transport_id = ? OR (transport_id IS NULL'\n"
code += " c << session[:current_transport_id].to_i\n"
View
2  app/helpers/application_helper.rb
@@ -559,7 +559,7 @@ def title_tag
else
tc(:page_title_by_default, :action=>controller.human_action_name)
end
- return "<title>" << h(title) << "</title>"
+ return ("<title>" << h(title) << "</title>").html_safe
end
def title_header_tag
View
5 app/models/company.rb
@@ -707,11 +707,6 @@ def print(options={})
-
-
-
-
-
def self.create_with_data(company_attr=nil, user_attr=nil, demo_language_code=nil)
language = 'fra'
company = Company.new({:language=>language}.merge(company_attr))
View
2  app/models/product.rb
@@ -100,7 +100,7 @@ class Product < CompanyRecord
has_many :stocks
has_many :subscriptions
has_many :trackings
- has_many :units, :class_name=>"Unit", :finder_sql=>'SELECT #{Unit.table_name}.* FROM #{Unit.table_name} WHERE company_id=#{company_id} AND base=#{connection.quote(unit.base)} ORDER BY coefficient, label', :counter_sql=>'SELECT count(*) AS count_all FROM #{Unit.table_name} WHERE company_id=#{company_id} AND base=#{connection.quote(unit.base)}'
+ has_many :units, :class_name=>"Unit", :finder_sql=>proc{ "SELECT #{Unit.table_name}.* FROM #{Unit.table_name} WHERE company_id=#{company_id} AND base=#{connection.quote(unit.base)} ORDER BY coefficient, label"}, :counter_sql=>proc{ "SELECT count(*) AS count_all FROM #{Unit.table_name} WHERE company_id=#{company_id} AND base=#{connection.quote(unit.base)}" }
validates_presence_of :subscription_nature, :if=>Proc.new{|u| u.nature.to_s=="subscrip"}
validates_presence_of :subscription_period, :if=>Proc.new{|u| u.nature.to_s=="subscrip" and u.subscription_nature and u.subscription_nature.period?}
validates_presence_of :subscription_quantity, :if=>Proc.new{|u| u.nature.to_s=="subscrip" and u.subscription_nature and not u.subscription_nature.period?}
View
22 app/models/user.rb
@@ -58,16 +58,6 @@
require "digest/sha2"
class User < CompanyRecord
- #[VALIDATORS[
- # Do not edit these lines directly. Use `rake clean:validations`.
- validates_numericality_of :reduction_percent, :allow_nil => true
- validates_length_of :language, :allow_nil => true, :maximum => 3
- validates_length_of :name, :allow_nil => true, :maximum => 32
- validates_length_of :hashed_password, :salt, :allow_nil => true, :maximum => 64
- validates_length_of :email, :employment, :first_name, :last_name, :office, :allow_nil => true, :maximum => 255
- validates_inclusion_of :admin, :employed, :locked, :in => [true, false]
- validates_presence_of :company, :first_name, :language, :last_name, :name, :reduction_percent, :role
- #]VALIDATORS]
belongs_to :department
belongs_to :establishment
belongs_to :profession
@@ -80,7 +70,17 @@ class User < CompanyRecord
has_many :sales, :foreign_key=>:responsible_id
has_many :operations, :foreign_key=>:responsible_id
has_many :transports, :foreign_key=>:responsible_id
- validates_presence_of :company_id, :password, :password_confirmation, :if=>Proc.new{|u| u.new_record?}
+ #[VALIDATORS[
+ # Do not edit these lines directly. Use `rake clean:validations`.
+ validates_numericality_of :reduction_percent, :allow_nil => true
+ validates_length_of :language, :allow_nil => true, :maximum => 3
+ validates_length_of :name, :allow_nil => true, :maximum => 32
+ validates_length_of :hashed_password, :salt, :allow_nil => true, :maximum => 64
+ validates_length_of :email, :employment, :first_name, :last_name, :office, :allow_nil => true, :maximum => 255
+ validates_inclusion_of :admin, :employed, :locked, :in => [true, false]
+ validates_presence_of :company, :first_name, :language, :last_name, :name, :reduction_percent, :role
+ #]VALIDATORS]
+ validates_presence_of :password, :password_confirmation, :if=>Proc.new{|u| u.new_record?}
validates_confirmation_of :password
validates_inclusion_of :reduction_percent, :in=>0..100
validates_uniqueness_of :name, :scope=>:company_id
View
2  app/views/journals/reports.html.haml
@@ -6,7 +6,7 @@
-f.field DocumentTemplate.model_name.human, select_tag("template", options_for_select(@document_templates.collect{|d| [d.name, d.code]}, params[:code]), :id=>"template_code")
#document_options=render(:partial=>'options')
.actions=submit_tag tg(:print), :name=>nil
-=observe_field "template_code", :update=>:document_options, :url=>{:action=>:reports}, :with=>"code"
+=observe_field "template_code", :update=>:document_options, :url=>{:action=>:reports}, :with=>"code", :method=>:get
=form_tag({}, :method=>:get) do
%fieldset
View
1  config
View
139 config-2.3/boot.rb
@@ -1,139 +0,0 @@
-# Don't change this file!
-# Configure your app in config/environment.rb and config/environments/*.rb
-
-RAILS_ROOT = "#{File.dirname(__FILE__)}/.." unless defined?(RAILS_ROOT)
-
-module Rails
- class << self
- def boot!
- unless booted?
- preinitialize
- pick_boot.run
- end
- end
-
- def booted?
- defined? Rails::Initializer
- end
-
- def pick_boot
- (vendor_rails? ? VendorBoot : GemBoot).new
- end
-
- def vendor_rails?
- File.exist?("#{RAILS_ROOT}/vendor/rails")
- end
-
- def preinitialize
- load(preinitializer_path) if File.exist?(preinitializer_path)
- end
-
- def preinitializer_path
- "#{RAILS_ROOT}/config/preinitializer.rb"
- end
- end
-
- class Boot
- def run
- load_initializer
- Rails::Initializer.run(:set_load_path)
- end
- end
-
- class VendorBoot < Boot
- def load_initializer
- require "#{RAILS_ROOT}/vendor/rails/railties/lib/initializer"
- Rails::Initializer.run(:install_gem_spec_stubs)
- Rails::GemDependency.add_frozen_gem_path
- end
- end
-
- class GemBoot < Boot
- def load_initializer
- self.class.load_rubygems
- load_rails_gem
- require 'initializer'
- end
-
- def load_rails_gem
- if version = self.class.gem_version
- gem 'rails', version
- else
- gem 'rails'
- end
- rescue Gem::LoadError => load_error
- $stderr.puts %(Missing the Rails #{version} gem. Please `gem install -v=#{version} rails`, update your RAILS_GEM_VERSION setting in config/environment.rb for the Rails version you do have installed, or comment out RAILS_GEM_VERSION to use the latest version installed.)
- exit 1
- end
-
- class << self
- def rubygems_version
- Gem::RubyGemsVersion rescue nil
- end
-
- def gem_version
- if defined? RAILS_GEM_VERSION
- RAILS_GEM_VERSION
- elsif ENV.include?('RAILS_GEM_VERSION')
- ENV['RAILS_GEM_VERSION']
- else
- parse_gem_version(read_environment_rb)
- end
- end
-
- def load_rubygems
- require 'rubygems'
- min_version = '1.3.1'
- unless rubygems_version >= min_version
- $stderr.puts %Q(Rails requires RubyGems >= #{min_version} (you have #{rubygems_version}). Please `gem update --system` and try again.)
- exit 1
- end
-
- rescue LoadError
- $stderr.puts %Q(Rails requires RubyGems >= #{min_version}. Please install RubyGems and try again: http://rubygems.rubyforge.org)
- exit 1
- end
-
- def parse_gem_version(text)
- $1 if text =~ /^[^#]*RAILS_GEM_VERSION\s*=\s*["']([!~<>=]*\s*[\d.]+)["']/
- end
-
- private
- def read_environment_rb
- File.read("#{RAILS_ROOT}/config/environment.rb")
- end
- end
- end
-end
-
-# # TODO: Workaround for #7013 to be removed for 1.2.0
-# # Loads i18n 0.4.2 before Rails loads any more recent gem
-# # 0.5.0 is not compatible with the old interpolation syntax
-# # Plugins will have to migrate to the new syntax for 1.2.0
-# require 'rubygems'
-# begin
-# gem 'i18n', '0.4.2'
-# rescue Gem::LoadError => load_error
-# $stderr.puts %(Missing the i18n 0.4.2 gem. Please `gem install -v=0.4.2 i18n`)
-# exit 1
-# end
-
-class Rails::Boot
- def run
- load_initializer
-
- Rails::Initializer.class_eval do
- def load_gems
- @bundler_loaded ||= Bundler.require :default, Rails.env
- end
- end
-
- Rails::Initializer.run(:set_load_path)
- end
-end
-
-require 'yaml'
-YAML::ENGINE.yamler= 'syck'
-
-# All that for this:
-Rails.boot!
View
1  config-2.3/database.mysql.yml
View
1  config-2.3/database.postgresql.yml
View
1  config-2.3/database.sqlite3.yml
View
1  config-2.3/database.sqlserver.yml
View
58 config-2.3/environment.rb
@@ -1,58 +0,0 @@
-# Be sure to restart your server when you modify this file
-
-# Specifies gem version of Rails to use when vendor/rails is not present
-RAILS_GEM_VERSION = '2.3.10' unless defined? RAILS_GEM_VERSION
-
-# Bootstrap the Rails environment, frameworks, and default configuration
-require File.join(File.dirname(__FILE__), 'boot')
-
-Rails::Initializer.run do |config|
- # Settings in config/environments/* take precedence over those specified here.
- # Application configuration should go into files in config/initializers
- # -- all .rb files in that directory are automatically loaded.
-
- # Add additional load paths for your own custom dirs
- # config.load_paths += %W( #{RAILS_ROOT}/extras )
-
- # Only load the plugins named here, in the order given (default is alphabetical).
- # :all can be used as a placeholder for all plugins not explicitly named
- # config.plugins = [ :will_paginate, :dyke, :all ]
-
- # Skip frameworks you're not going to use. To use Rails without a database,
- # you must remove the Active Record framework.
- # config.frameworks -= [ :active_record, :active_resource, :action_mailer ]
-
- # Activate observers that should always be running
- # config.active_record.observers = :cacher, :garbage_collector, :forum_observer
-
- # Use the database for sessions instead of the cookie-based default,
- # which shouldn't be used to store highly confidential information
- # (create the session table with "rake db:sessions:create")
- config.action_controller.session_store = :active_record_store
-
- # Set Time.zone default to the specified zone and make Active Record auto-convert to this zone.
- # Run "rake -D time" for a list of tasks for finding time zone names.
- # config.time_zone = 'UTC'
-
- # The default locale is :en and all translations from config/locales/*.rb,yml are auto loaded.
- # config.i18n.load_path += Dir[Rails.root.join('my', 'locales', '*.{rb,yml}')]
- config.i18n.load_path += Dir[Rails.root.join('config', 'locales', '*', '*.{rb,yml}')]
- config.i18n.default_locale = :eng
-end
-
-
-# ::I18n.active_locales = [:fra]
-
-#Xil.options[:features] += [:template,:document]
-#Xil.options[:subdir_size] = 4
-# if defined? WillPaginate
-# WillPaginate::ViewHelpers.pagination_options[:previous_label] = I18n.t('general.previous')
-# WillPaginate::ViewHelpers.pagination_options[:next_label] = I18n.t('general.next')
-# end
-
-if defined? ExceptionNotifier
- # ExceptionNotifier.exception_recipients = %w(dev@ekylibre.org dev@fdsea33.fr)
- ExceptionNotifier.exception_recipients = %w(dev@fdsea33.fr)
- ExceptionNotifier.sender_address = %("Ekylibre Error" <notifier@ekylibre.org>)
-end
-
View
19 config-2.3/environments/development.rb
@@ -1,19 +0,0 @@
-# Settings specified here will take precedence over those in config/environment.rb
-
-# In the development environment your application's code is reloaded on
-# every request. This slows down response time but is perfect for development
-# since you don't have to restart the webserver when you make code changes.
-config.cache_classes = false
-
-# Log error messages when you accidentally call methods on nil.
-config.whiny_nils = true
-
-# Show full error reports and disable caching
-config.action_controller.consider_all_requests_local = true
-config.action_view.debug_rjs = true
-config.action_controller.perform_caching = false
-
-# Don't care if the mailer can't send
-config.action_mailer.raise_delivery_errors = true
-
-config.reload_plugins = true
View
31 config-2.3/environments/production.rb
@@ -1,31 +0,0 @@
-# Settings specified here will take precedence over those in config/environment.rb
-
-# The production environment is meant for finished, "live" apps.
-# Code is not reloaded between requests
-config.cache_classes = true
-
-# Full error reports are disabled and caching is turned on
-config.action_controller.consider_all_requests_local = false
-config.action_controller.perform_caching = true
-config.action_view.cache_template_loading = true
-
-# See everything in the log (default is :info)
-# config.log_level = :debug
-
-# Use a different logger for distributed setups
-# config.logger = SyslogLogger.new
-
-# Use a different cache store in production
-# config.cache_store = :mem_cache_store
-
-# Enable serving of images, stylesheets, and javascripts from an asset server
-# config.action_controller.asset_host = "http://assets.example.com"
-
-# Disable delivery errors, bad email addresses will be ignored
-# config.action_mailer.raise_delivery_errors = false
-
-# Enable threaded mode
-# config.threadsafe!
-
-# If set to true, Haml makes no attempt to properly indent or format the HTML output. This significantly improves rendering performance but makes viewing the source unpleasant.
-Haml::Template.options[:ugly] = true
View
31 config-2.3/environments/test.rb
@@ -1,31 +0,0 @@
-# Settings specified here will take precedence over those in config/environment.rb
-
-# The test environment is used exclusively to run your application's
-# test suite. You never need to work with it otherwise. Remember that
-# your test database is "scratch space" for the test suite and is wiped
-# and recreated between test runs. Don't rely on the data there!
-config.cache_classes = true
-
-# Log error messages when you accidentally call methods on nil.
-config.whiny_nils = true
-
-# Show full error reports and disable caching
-config.action_controller.consider_all_requests_local = true
-config.action_controller.perform_caching = false
-config.action_view.cache_template_loading = true
-
-# Disable request forgery protection in test environment
-config.action_controller.allow_forgery_protection = false
-
-# Tell Action Mailer not to deliver emails to the real world.
-# The :test delivery method accumulates sent emails in the
-# ActionMailer::Base.deliveries array.
-config.action_mailer.delivery_method = :test
-
-# Use SQL instead of Active Record's schema dumper when creating the test database.
-# This is necessary if your schema can't be completely dumped by the schema dumper,
-# like if you have constraints or database-specific column types
-# config.active_record.schema_format = :sql
-
-# If set to true, Haml makes no attempt to properly indent or format the HTML output. This significantly improves rendering performance but makes viewing the source unpleasant.
-Haml::Template.options[:ugly] = true
View
63 config-2.3/gemfile.lock.rb
@@ -1,63 +0,0 @@
-PATH
- remote: vendor/ogems/exception_notification-2.3.3.0
- specs:
- exception_notification (2.3.3.0)
-
-GEM
- remote: http://rubygems.org/
- specs:
- actionmailer (2.3.10)
- actionpack (= 2.3.10)
- actionpack (2.3.10)
- activesupport (= 2.3.10)
- rack (~> 1.1.0)
- activerecord (2.3.10)
- activesupport (= 2.3.10)
- activeresource (2.3.10)
- activesupport (= 2.3.10)
- activesupport (2.3.10)
- fastercsv (1.5.4)
- formize (0.0.6)
- actionpack (~> 2.3)
- activesupport (~> 2.3)
- haml (3.1.2)
- i18n (0.6.0)
- libxml-ruby (1.1.3)
- mysql (2.8.1)
- pg (0.11.0)
- rack (1.1.2)
- rails (2.3.10)
- actionmailer (= 2.3.10)
- actionpack (= 2.3.10)
- activerecord (= 2.3.10)
- activeresource (= 2.3.10)
- activesupport (= 2.3.10)
- rake (>= 0.8.3)
- rake (0.9.2)
- ruby-prof (0.10.8)
- rubyzip (0.9.4)
- shoulda (2.11.3)
- sqlite3 (1.3.4)
- state_machine (0.9.4)
- will_paginate (2.3.16)
-
-PLATFORMS
- ruby
-
-DEPENDENCIES
- exception_notification!
- fastercsv
- formize
- haml
- i18n (>= 0.5)
- libxml-ruby (= 1.1.3)
- mysql
- pg (= 0.11.0)
- rails (= 2.3.10)
- ruby-prof
- rubyzip
- shoulda
- sqlite3
- state_machine (= 0.9.4)
- thin (>= 1.2.6)
- will_paginate (~> 2.3)
View
35 config-2.3/gemfile.rb
@@ -1,35 +0,0 @@
-source :gemcutter
-
-# gem "ruby-debug"
-
-# gem "rake", "0.8.7"
-gem "rails", "2.3.10"
-gem "i18n", ">= 0.5"
-gem "haml"
-gem "fastercsv" # , :platforms=>[:ruby_18, :mri_18, :mingw_18, :mswin]
-gem "libxml-ruby", "1.1.3", :require=>"libxml"
-gem "rubyzip", :require=>"zip/zip"
-gem "will_paginate", "~> 2.3"
-# gem "exception_notification", :branch=>"2-3-stable", :git=>"https://github.com/smartinez87/exception_notification.git" # , :require=>"exception_notifier"
-gem "exception_notification", :path => "vendor/ogems/exception_notification-2.3.3.0"
-
-# gem "formtastic", "1.2.4"
-# gem "simple_form", "1.0.4"
-# gem "formize", :path => "vendor/ogems/formize"
-gem "formize"
-
-gem "state_machine", "0.9.4"
-# gem "ruby-graphviz", ">= 0.9.0"
-
-group :test do
- gem "shoulda"
- gem "ruby-prof"
-end
-
-platform :mswin do
- gem "thin", ">= 1.2.6"
-end
-
-gem "pg", "0.11.0"
-gem "mysql"
-gem "sqlite3"
View
1  config-2.3/initializers/10-patches.rb
View
1  config-2.3/initializers/formize.rb
View
7 config-2.3/initializers/gems.rb
@@ -1,7 +0,0 @@
-# gem install -r fastercsv
-require 'fastercsv'
-# gem install -r measure
-require 'measure'
-# "Built-in" gems
-require "#{RAILS_ROOT}/lib/init"
-
View
14 config-2.3/initializers/inflections.rb
@@ -1,14 +0,0 @@
-# Be sure to restart your server when you modify this file.
-
-# Add new inflection rules using the following format
-# (all these examples are active by default):
-# ActiveSupport::Inflector.inflections do |inflect|
-# inflect.plural /^(ox)$/i, '\1en'
-# inflect.singular /^(ox)en/i, '\1'
-# inflect.irregular 'person', 'people'
-# inflect.uncountable %w( fish sheep )
-# end
-
-ActiveSupport::Inflector.inflections do |inflect|
- inflect.irregular 'tax', 'taxes'
-end
View
1  config-2.3/initializers/mime_types.rb
View
19 config-2.3/initializers/new_rails_defaults.rb
@@ -1,19 +0,0 @@
-# Be sure to restart your server when you modify this file.
-
-# These settings change the behavior of Rails 2 apps and will be defaults
-# for Rails 3. You can remove this initializer when Rails 3 is released.
-
-if defined?(ActiveRecord)
- # Include Active Record class name as root for JSON serialized output.
- ActiveRecord::Base.include_root_in_json = true
-
- # Store the full class name (including module namespace) in STI type column.
- ActiveRecord::Base.store_full_sti_class = true
-end
-
-# Use ISO 8601 format for JSON serialized times and dates.
-ActiveSupport.use_standard_json_time_format = true
-
-# Don't escape HTML entities in JSON, leave that for the #json_escape helper.
-# if you're including raw json in an HTML page.
-ActiveSupport.escape_html_entities_in_json = false
View
193 config-2.3/initializers/rails-3_compatibility.rb
@@ -1,193 +0,0 @@
-# Rails javascript
-ActionView::Helpers::AssetTagHelper::register_javascript_include_default "rails"
-
-
-# html_safe methods directly pasted from Rails 3
-require 'erb'
-require 'active_support/core_ext/kernel/singleton_class'
-
-class ERB
- module Util
- # HTML_ESCAPE = { '&' => '&amp;', '>' => '&gt;', '<' => '&lt;', '"' => '&quot;' }
- # JSON_ESCAPE = { '&' => '\u0026', '>' => '\u003E', '<' => '\u003C' }
-
- # A utility method for escaping HTML tag characters.
- # This method is also aliased as <tt>h</tt>.
- #
- # In your ERb templates, use this method to escape any unsafe content. For example:
- # <%=h @person.name %>
- #
- # ==== Example:
- # puts html_escape("is a > 0 & a < 10?")
- # # => is a &gt; 0 &amp; a &lt; 10?
- def html_escape(s)
- s = s.to_s
- if s.html_safe?
- s
- else
- s.gsub(/[&"><]/) { |special| HTML_ESCAPE[special] }.html_safe
- end
- end
-
- remove_method(:h)
- alias h html_escape
-
- module_function :h
-
- singleton_class.send(:remove_method, :html_escape)
- module_function :html_escape
-
- # A utility method for escaping HTML entities in JSON strings.
- # This method is also aliased as <tt>j</tt>.
- #
- # In your ERb templates, use this method to escape any HTML entities:
- # <%=j @person.to_json %>
- #
- # ==== Example:
- # puts json_escape("is a > 0 & a < 10?")
- # # => is a \u003E 0 \u0026 a \u003C 10?
- def json_escape(s)
- s.to_s.gsub(/[&"><]/) { |special| JSON_ESCAPE[special] }
- end
-
- alias j json_escape
- module_function :j
- module_function :json_escape
- end
-end
-
-class Object
- def html_safe?
- false
- end
-end
-
-class Fixnum
- def html_safe?
- true
- end
-end
-
-module ActiveSupport #:nodoc:
- class SafeBuffer < String
- alias safe_concat concat
-
- def concat(value)
- if value.html_safe?
- super(value)
- else
- super(ERB::Util.h(value))
- end
- end
- alias << concat
-
- def +(other)
- dup.concat(other)
- end
-
- def html_safe?
- true
- end
-
- def html_safe
- self
- end
-
- def to_s
- self
- end
-
- def to_yaml(*args)
- to_str.to_yaml(*args)
- end
- end
-end
-
-class String
- def html_safe!
- raise "You can't call html_safe! on a String"
- end
-
- def html_safe
- ActiveSupport::SafeBuffer.new(self)
- end
-end
-
-
-
-# ModelName
-class ::ActiveSupport::ModelName
-
- def human
- ::I18n.translate("activerecord.models.#{self.singular.underscore}")
- end
-
-end
-
-class ActiveRecord::Base
- @@callbacks_counter = 0
-
- class << self
-
-
- # Callbacks
- # Permits the use of callbacks like in Rails 3
- compat = :rails3_compatibility
- code = ""
- #
- for callback in %w( before_validation validate after_validation )
- code += "def #{callback}_with_#{compat}(*args, &block)\n"
- code += " options = args[-1].is_a?(::Hash) ? args[-1] : {}\n"
- code += " raise ArgumentError.new(':on option in Callback must be one of these :save, :create or :update. '+options[:on].inspect+' got.') if options[:on] and not [:save, :create, :update].include?(options[:on])\n"
- code += " moment = \"#{callback}\#\{[:create, :update].include?(options[:on]) ? '_on_'+options[:on].to_s : '_without_#{compat}'\}\".to_sym\n"
- code += " return self.send(moment, *args, &block) if not block_given? or (block_given? and block.arity > 0)\n"
- code += " method_name = \"\#\{moment\}_\#\{@@callbacks_counter+=1\}\".to_sym\n"
- code += " self.send(moment, method_name)\n"
- code += " self.send(:define_method, method_name, &block)\n"
- code += "end\n"
- code += "alias_method_chain :#{callback}, :#{compat}\n"
- end
-
- # before_validation_on_create after_validation_on_create before_validation_on_update after_validation_on_update
- for callback in %w( after_find after_initialize before_save after_save before_create after_create before_update after_update before_destroy after_destroy )
- moment = ":#{callback}_without_#{compat}"
- method_name = ":#{callback}_#{@@callbacks_counter+=1}"
- code += "def #{callback}_with_#{compat}(*args, &block)\n"
- code += " return self.send(#{moment}, *args, &block) if not block_given? or (block_given? and block.arity > 0)\n"
- code += " self.send(#{moment}, #{method_name})\n"
- code += " self.send(:define_method, #{method_name}, &block)\n"
- code += "end\n"
- code += "alias_method_chain :#{callback}, :#{compat}\n"
- end
-
- # list = code.split("\n"); list.each_index{|x| puts((x+1).to_s.rjust(4)+": "+list[x])}
- eval(code)
-
-
- # Human attribute name
- # Rails 3 style but not totally
- def human_attribute_name(attribute, options = {})
- # defaults = lookup_ancestors.map do |klass|
- # "#{self.i18n_scope}.attributes.#{klass.model_name.i18n_key}.#{attribute}".to_sym
- # end
-
- defaults = ["activerecord.attributes.#{self.model_name.singular}.#{attribute}".to_sym]
- defaults << "attributes.#{attribute}".to_sym
- defaults << options.delete(:default) if options[:default]
- defaults << attribute.to_s.humanize
-
- options.reverse_merge! :count => 1, :default => defaults
- I18n.translate(defaults.shift, options)
- end
-
-
- end
-
-
-
-
-end
-
-# Adds fallbacks by default
-require "i18n/backend/fallbacks"
-I18n::Backend::Simple.send(:include, I18n::Backend::Fallbacks)
View
1  config-2.3/locales
View
1  config-2.3/menus.yml
View
1  config-2.3/preferences.csv
View
20 config-2.3/preinitializer.rb
@@ -1,20 +0,0 @@
-begin
- require "rubygems"
- require "bundler"
-rescue LoadError
- raise "Could not load the bundler gem. Install it with `gem install bundler`."
-end
-
-if Gem::Version.new(Bundler::VERSION) <= Gem::Version.new("0.9.24")
- raise RuntimeError, "Your bundler version is too old for Rails 2.3." +
- "Run `gem install bundler` to upgrade."
-end
-
-begin
- # Set up load paths for all bundled gems
- ENV["BUNDLE_GEMFILE"] = File.expand_path("../../Gemfile", __FILE__)
- Bundler.setup
-rescue Bundler::GemNotFound
- raise RuntimeError, "Bundler couldn't find some gems." +
- "Did you run `bundle install`?"
-end
View
7 config-2.3/rack.rb
@@ -1,7 +0,0 @@
-# This file is used by Rack-based servers to start the application.
-
-require ::File.expand_path('../config/environment', __FILE__)
-# require "config/environment"
-use Rails::Rack::LogTailer
-use Rails::Rack::Static
-run ActionController::Dispatcher.new
View
10 config-2.3/rakefile.rb
@@ -1,10 +0,0 @@
-# Add your own tasks in files placed in lib/tasks ending in .rake,
-# for example lib/tasks/capistrano.rake, and they will automatically be available to Rake.
-
-require(File.join(File.dirname(__FILE__), 'config', 'boot'))
-
-require 'rake'
-require 'rake/testtask'
-require 'rake/rdoctask'
-
-require 'tasks/rails'
View
1  config-2.3/rights.yml
View
113 config-2.3/routes.rb
@@ -1,113 +0,0 @@
-ActionController::Routing::Routes.draw do |map|
-
- map.resource :session, :only=>[:new, :create, :destroy], :member=>{:renew=>[:get, :post]}
- map.resource :company, :only=>[], :collection=>{:register=>[:get, :post]}
-
- map.with_options(:path_prefix => '/:company') do |company|
- company.resource :myself, :as=>"me", :only=>[], :member=>{:statistics=>:get, :change_password=>[:get, :post]}
- company.resource :settings, :only=>[:edit, :update], :member=>{:about=>:get, :backups=>:get, :backup=>:post, :restore=>:post, :import=>[:get, :post]}
- dashboards = {}
- Ekylibre.menus.keys.collect{|d| dashboards[d.to_sym] = :get}
- company.resources :dashboards, :only=>[], :collection=>{:welcome=>:get, :list_my_future_events=>:get, :list_recent_events=>:get, :list_critic_stocks=>:get}.merge(dashboards)
- # Permits to use dynamic dashboards
- # company.dashboard '/dashboards/:action', :controller=>"dashboards", :conditions=>{:method=>:get}
- company.toggle_side '/toggle/side', :controller=>"interfacers", :action=>"toggle_side"
- company.toggle_submenu '/toggle/submenu/:id', :controller=>"interfacers", :action=>"toggle_submenu"
- company.toggle_tab '/toggle/tab/:id', :controller=>"interfacers", :action=>"toggle_tab"
- company.interfacer '/ui/:action', :controller=>:interfacers # , :conditions=>{:method=>:get}
- company.resources :help, :only=>[:index, :show]
-
- # company.resources :account_balances
- company.resources :accounts, :collection=>{:list=>:get, :list_journal_entry_lines=>:get, :list_reconciliation=>:get, :list_entities=>:get, :load=>[:get, :post], :reconciliation=>:get}, :member=>{:unmark=>[:post], :mark=>[:get, :post]}
- company.resources :areas, :collection=>{:list=>:get}
- company.resources :bank_statements, :collection=>{:list=>:get, :list_lines=>:get}, :member=>{:point=>[:get, :post]}
- company.resources :cashes, :collection=>{:list=>:get, :list_deposits=>:get, :list_bank_statements=>:get}
- company.resources :cash_transfers, :collection=>{:list=>:get}
- company.resources :contacts, :except=>[:show, :index]
- # company.resources :cultivations
- # company.resources :currencies
- company.resources :custom_fields, :collection=>{:list=>:get, :list_choices=>:get}, :member=>{:sort=>:post, :up=>:post, :down=>:post}
- company.resources :custom_field_choices, :except=>[:show, :index], :member=>{:up=>:post, :down=>:post}
- # company.resources :custom_field_data
- company.resources :delays, :collection=>{:list=>:get}
- company.resources :departments, :except=>[:show], :collection=>{:list=>:get}
- company.resources :deposits, :collection=>{:list=>:get, :list_payments=>:get, :list_depositable_payments=>:get, :unvalidateds=>:get, :list_unvalidateds=>:get}
- # company.resources :deposit_lines
- company.resources :districts, :collection=>{:list=>:get}
- company.resources :document_templates, :collection=>{:list=>:get, :load=>:post}, :member=>{:print=>:get, :duplicate=>:post}
- company.resources :documents
- company.resources :entities, :collection=>{:list=>:get, :list_observations=>:get, :list_subscriptions=>:get, :list_sales=>:get, :list_purchases=>:get, :list_outgoing_payments=>:get, :list_mandates=>:get, :list_incoming_payments=>:get, :list_events=>:get, :list_contacts=>:get, :list_cashes=>:get, :list_links=>:get, :import=>[:get, :post], :export=>[:get, :post], :merge=>[:get, :post]}
- company.resources :entity_categories, :collection=>{:list=>:get, :list_prices=>:get}
- company.resources :entity_links, :except=>[:index, :show]
- company.resources :entity_link_natures, :except=>[:show], :collection=>{:list=>:get}
- company.resources :entity_natures, :except=>[:show], :collection=>{:list=>:get}
- company.resources :establishments, :except=>[:show], :collection=>{:list=>:get}
- company.resources :events, :except=>[:show], :collection=>{:list=>:get, :change_minutes=>:get}
- company.resources :event_natures, :except=>[:show], :collection=>{:list=>:get}
- company.resources :financial_years, :collection=>{:list=>:get}, :member=>{:close=>[:get, :post]}
- company.resources :incoming_deliveries, :collection=>{:list=>:get}, :member=>{:confirm=>[:get, :post]}
- # company.resources :incoming_delivery_lines
- company.resources :incoming_delivery_modes, :except=>[:show], :collection=>{:list=>:get}
- company.resources :incoming_payments, :collection=>{:list=>:get, :list_sales=>:get}
- company.resources :incoming_payment_modes, :except=>[:show], :collection=>{:list=>:get}, :member=>{:up=>:post, :down=>:post, :reflect=>:post}
- company.resources :incoming_payment_uses
- company.resources :inventories, :collection=>{:list=>:get, :list_lines=>:get, :list_lines_create=>:get, :list_lines_update=>:get}, :member=>{:reflect=>[:get, :post]}
- # company.resources :inventory_lines
- company.resources :journals, :collection=>{:draft=>[:get, :post], :bookkeep=>[:get, :post], :balance=>:get, :general_ledger=>:get, :reports=>:get, :list=>:get, :list_draft_lines=>:get, :list_mixed=>:get, :list_lines=>:get, :list_entries=>:get, :list_general_ledger=>:get}, :member=>{:close=>[:get, :post], :reopen=>[:get, :post]}
- company.resources :journal_entries, :collection=>{:list_lines=>:get}
- company.resources :journal_entry_lines, :only=>[:new]
- company.resources :land_parcels, :collection=>{:list=>:get, :list_operations=>:get, :merge=>[:get, :post]}, :member=>{:divide=>[:get, :post]}
- company.resources :land_parcel_groups, :except=>[:show], :collection=>{:list=>:get}
- # company.resources :land_parcel_kinships
- # company.resources :listing_node_items
- company.resources :listing_nodes
- company.resources :listings, :collection=>{:list=>:get}, :member=>{:extract=>:get, :duplicate=>:post, :mail=>[:get, :post]}
- company.resources :mandates, :except=>[:show], :collection=>{:list=>:get, :configure=>[:get, :post]}
- company.resources :observations, :except=>[:index, :show]
- company.resources :operations, :collection=>{:list=>:get, :list_lines=>:get, :list_uses=>:get, :list_unvalidateds=>:get, :unvalidateds=>[:get, :post]}
- company.resources :operation_lines, :only=>[:new, :create]
- company.resources :operation_natures, :except=>[:show], :collection=>{:list=>:get}
- company.resources :operation_uses
- company.resources :outgoing_deliveries, :collection=>{:list=>:get, :list_lines=>:get}
- # company.resources :outgoing_delivery_lines
- company.resources :outgoing_delivery_modes, :except=>[:show], :collection=>{:list=>:get}
- company.resources :outgoing_payments, :collection=>{:list=>:get, :list_purchases=>:get}
- company.resources :outgoing_payment_modes, :except=>[:show], :collection=>{:list=>:get}, :member=>{:up=>:post, :down=>:post}
- company.resources :outgoing_payment_uses
- # company.resources :preferences
- company.resources :prices, :collection=>{:list=>:get, :export=>[:get, :post], :import=>[:get, :post], :find=>:get}
- company.resources :products, :collection=>{:list=>:get, :list_prices=>:get, :list_stocks=>:get, :list_stock_moves=>:get, :list_components=>:get, :change_quantities=>:get}
- company.resources :product_categories, :collection=>{:list=>:get, :list_products=>:get}
- company.resources :product_components, :except=>[:show, :index]
- company.resources :production_chains, :collection=>{:list=>:get, :list_work_centers=>:get, :list_conveyors=>:get}
- company.resources :production_chain_conveyors, :except=>[:show, :index]
- company.resources :production_chain_work_centers, :except=>[:index], :member=>{:up=>:post, :down=>:post, :play=>[:get, :post]}
- # company.resources :production_chain_work_center_uses, :except=>[:show, :index]
- company.resources :professions, :except=>[:show], :collection=>{:list=>:get}
- company.resources :purchase_lines, :except=>[:index, :show]
- company.resources :purchases, :collection=>{:list=>:get, :list_lines=>:get, :list_undelivered_lines=>:get, :list_deliveries=>:get, :list_payment_uses=>:get}, :member=>{:correct=>:post, :propose=>:post, :invoice=>:post, :confirm=>:post, :abort=>:get, :refuse=>:post}
- company.resources :roles, :except=>[:show], :collection=>{:list=>:get}
- company.resources :sale_lines, :except=>[:index, :show], :collection=>{:list=>:get, :detail=>:get}
- company.resources :sale_natures, :except=>[:show], :collection=>{:list=>:get}
- company.resources :sales, :collection=>{:list=>:get, :list_lines=>:get, :list_undelivered_lines=>:get, :list_subscriptions=>:get, :list_payment_uses=>:get, :list_deliveries=>:get, :list_credits=>:get, :list_creditable_lines=>:get, :statistics=>:get, :contacts=>[:get]}, :member=>{:duplicate=>:post, :cancel=>[:get, :post], :correct=>:post, :propose=>:post, :invoice=>:post, :confirm=>:post, :abort=>:get, :refuse=>:post, :propose_and_invoice=>:post}
- company.resources :sequences, :except=>[:show], :collection=>{:list=>:get, :load=>:post}
- # company.resources :stock_moves, :except=>[:index, :show]
- company.resources :stock_transfers, :except=>[:show], :collection=>{:list=>:get, :list_confirm=>:get, :confirm_all=>[:get, :post]}, :member=>{:confirm=>[:get, :post]}
- company.resources :stocks, :except=>[:show], :collection=>{:list=>:get, :formize=>:get}
- company.resources :subscription_natures, :except=>[:show], :collection=>{:list=>:get}, :member=>{:increment=>:post, :decrement=>:post}
- company.resources :subscriptions, :except=>[:show], :collection=>{:list=>:get, :coordinates=>:get, :message=>:get}
- # company.resources :tax_declarations
- company.resources :taxes, :except=>[:show], :collection=>{:list=>:get}
- company.resources :tools, :collection=>{:list=>:get, :list_operations=>:get}
- company.resources :trackings, :only=>[:show], :collection=>{:list_stocks=>:get, :list_sale_lines=>:get, :list_purchase_lines=>:get, :list_operation_lines=>:get}
- # company.resources :tracking_states
- # company.resources :transfers
- company.resources :transports, :collection=>{:list=>:get, :list_deliveries=>:get, :list_transportable_deliveries=>:get, :deliveries=>[:get, :post], :delivery_delete=>[:get, :post]}
- company.resources :units, :except=>[:show], :collection=>{:list=>:get, :load=>:post}
- company.resources :users, :collection=>{:list=>:get}, :member=>{:lock=>:post, :unlock=>:post}
- company.resources :warehouses, :collection=>{:list=>:get, :list_stocks=>:get, :list_stock_moves=>:get}
-
- company.company_root "", :controller=>"dashboards", :action=>"general"
- end
- map.root :controller => "dashboards", :action=>"general"
-end
View
1  config-3
View
15 config-3.0/boot.rb
@@ -1,15 +0,0 @@
-require 'rubygems'
-require 'yaml'
-YAML::ENGINE.yamler= 'syck'
-
-# Set up gems listed in the Gemfile.
-gemfile = File.expand_path('../../Gemfile', __FILE__)
-begin
- ENV['BUNDLE_GEMFILE'] = gemfile
- require 'bundler'
- Bundler.setup
-rescue Bundler::GemNotFound => e
- STDERR.puts e.message
- STDERR.puts "Try running `bundle install`."
- exit!
-end if File.exist?(gemfile)
View
112 config-3.0/gemfile.lock.rb
@@ -1,112 +0,0 @@
-GEM
- remote: http://rubygems.org/
- specs:
- abstract (1.0.0)
- actionmailer (3.0.9)
- actionpack (= 3.0.9)
- mail (~> 2.2.19)
- actionpack (3.0.9)
- activemodel (= 3.0.9)
- activesupport (= 3.0.9)
- builder (~> 2.1.2)
- erubis (~> 2.6.6)
- i18n (~> 0.5.0)
- rack (~> 1.2.1)
- rack-mount (~> 0.6.14)
- rack-test (~> 0.5.7)
- tzinfo (~> 0.3.23)
- activemodel (3.0.9)
- activesupport (= 3.0.9)
- builder (~> 2.1.2)
- i18n (~> 0.5.0)
- activerecord (3.0.9)
- activemodel (= 3.0.9)
- activesupport (= 3.0.9)
- arel (~> 2.0.10)
- tzinfo (~> 0.3.23)
- activeresource (3.0.9)
- activemodel (= 3.0.9)
- activesupport (= 3.0.9)
- activesupport (3.0.9)
- arel (2.0.10)
- builder (2.1.2)
- coffee-script (2.2.0)
- coffee-script-source
- execjs
- coffee-script-source (1.1.1)
- erubis (2.6.6)
- abstract (>= 1.0.0)
- exception_notification (2.4.1)
- execjs (1.2.0)
- multi_json (~> 1.0)
- fastercsv (1.5.4)
- haml (3.1.2)
- i18n (0.5.0)
- json (1.5.3)
- libxml-ruby (2.0.9)
- mail (2.2.19)
- activesupport (>= 2.3.6)
- i18n (>= 0.4.0)
- mime-types (~> 1.16)
- treetop (~> 1.4.8)
- mime-types (1.16)
- multi_json (1.0.3)
- mysql (2.8.1)
- pg (0.11.0)
- polyglot (0.3.1)
- rack (1.2.3)
- rack-mount (0.6.14)
- rack (>= 1.0.0)
- rack-test (0.5.7)
- rack (>= 1.0)
- rails (3.0.9)
- actionmailer (= 3.0.9)
- actionpack (= 3.0.9)
- activerecord (= 3.0.9)
- activeresource (= 3.0.9)
- activesupport (= 3.0.9)
- bundler (~> 1.0)
- railties (= 3.0.9)
- railties (3.0.9)
- actionpack (= 3.0.9)
- activesupport (= 3.0.9)
- rake (>= 0.8.7)
- rdoc (~> 3.4)
- thor (~> 0.14.4)
- rake (0.8.7)
- rdoc (3.8)
- rubyzip (0.9.4)
- sass (3.1.4)
- sqlite3 (1.3.3)
- state_machine (0.9.4)
- thor (0.14.6)
- thoughtbot-shoulda (2.11.1)
- treetop (1.4.9)
- polyglot (>= 0.3.1)
- tzinfo (0.3.29)
- uglifier (1.0.0)
- execjs (>= 0.3.0)
- multi_json (>= 1.0.2)
- will_paginate (3.0.pre2)
-
-PLATFORMS
- ruby
-
-DEPENDENCIES
- coffee-script
- exception_notification
- fastercsv
- haml
- json
- libxml-ruby
- mysql
- pg (= 0.11.0)
- rails (= 3.0.9)
- rake (= 0.8.7)
- rubyzip
- sass
- sqlite3
- state_machine (= 0.9.4)
- thoughtbot-shoulda
- uglifier
- will_paginate (~> 3.0.pre2)
View
34 config-3.0/gemfile.rb
@@ -1,34 +0,0 @@
-source :gemcutter
-
-# gem 'ruby-debug'
-
-gem 'rake', '0.8.7'
-gem 'rails', '3.0.9'
-gem 'haml'
-gem 'fastercsv', :platforms=>[:ruby_18, :mri_18, :mingw_18, :mswin]
-gem 'libxml-ruby', :require=>'libxml' # , '1.1.3'
-gem 'rubyzip', :require=>'zip/zip'
-gem 'will_paginate', '~> 3.0.pre2'
-gem "exception_notification" # , :branch=>"master", :git=>"https://github.com/smartinez87/exception_notification.git", :require=>"exception_notifier"
-
-gem 'state_machine', "0.9.4"
-# gem 'ruby-graphviz', '>= 0.9.0'
-
-# Needed to use RJS with Rails ~> 3.1
-# gem 'prototype-rails', :git => 'git://github.com/rails/prototype-rails.git'
-# gem 'jquery-rails'
-
-# Asset template engines
-gem 'json'
-gem 'sass'
-gem 'coffee-script'
-gem 'uglifier'
-
-group :test do
- gem 'thoughtbot-shoulda', :require => 'shoulda'
-end
-
-gem 'pg', '0.11.0'
-gem 'mysql'
-gem 'sqlite3'
-
View
4 config-3.0/rack.rb
@@ -1,4 +0,0 @@
-# This file is used by Rack-based servers to start the application.
-
-require ::File.expand_path('../config/environment', __FILE__)
-run Ekylibre::Application
View
8 config-3.0/rakefile.rb
@@ -1,8 +0,0 @@
-# Add your own tasks in files placed in lib/tasks ending in .rake,
-# for example lib/tasks/capistrano.rake, and they will automatically be available to Rake.
-
-require(File.join(File.dirname(__FILE__), 'config', 'application'))
-# require File.expand_path('../config/application', __FILE__)
-# require 'rake'
-
-Ekylibre::Application.load_tasks
View
1  config.ru
View
4 config.ru
@@ -0,0 +1,4 @@
+# This file is used by Rack-based servers to start the application.
+
+require ::File.expand_path('../config/environment', __FILE__)
+run Ekylibre::Application
View
14 config-3.0/application.rb → config/application.rb
@@ -16,10 +16,10 @@ class Application < Rails::Application
# config.autoload_paths += %W(#{config.root}/extras)
# Only load the plugins named here, in the order given (default is alphabetical).
- # :all can be used as a placeholder for all plugins not explicitly named
+ # :all can be used as a placeholder for all plugins not explicitly named.
# config.plugins = [ :exception_notification, :ssl_requirement, :all ]
-
- # Activate observers that should always be running
+
+ # Activate observers that should always be running.
# config.active_record.observers = :cacher, :garbage_collector, :forum_observer
# Set Time.zone default to the specified zone and make Active Record auto-convert to this zone.
@@ -27,15 +27,13 @@ class Application < Rails::Application
# config.time_zone = 'Central Time (US & Canada)'
# The default locale is :en and all translations from config/locales/*.rb,yml are auto loaded.
- config.i18n.load_path += Dir[Rails.root.join('config', 'locales', '*', '*.{rb,yml}')]
+ config.i18n.load_path += Dir[Rails.root.join('config', 'locales', '*', '*.{rb,yml}').to_s]
config.i18n.default_locale = :eng
config.i18n.locale = :eng
- # Please note that JavaScript expansions are *ignored altogether* if the asset
- # pipeline is enabled (see config.assets.enabled below). Put your defaults in
- # app/assets/javascripts/application.js in that case.
- #
+
# JavaScript files you want as :defaults (application.js is always included).
# config.action_view.javascript_expansions[:defaults] = %w(prototype prototype_ujs)
+ # config.action_view.javascript_expansions[:defaults] = %w(jquery rails)
# Configure the default encoding used in templates for Ruby 1.9.
config.encoding = "utf-8"
View
10 config/boot.rb
@@ -0,0 +1,10 @@
+require 'rubygems'
+if RUBY_VERSION.match(/^1\.9/)
+ require 'yaml'
+ YAML::ENGINE.yamler= 'syck'
+end
+
+# Set up gems listed in the Gemfile.
+ENV['BUNDLE_GEMFILE'] ||= File.expand_path('../../Gemfile', __FILE__)
+
+require 'bundler/setup' if File.exists?(ENV['BUNDLE_GEMFILE'])
View
0  config-3.0/currencies.yml → config/currencies.yml
File renamed without changes
View
0  config-3.0/database.mysql.yml → config/database.mysql.yml
File renamed without changes
View
0  config-3.0/database.postgresql.yml → config/database.postgresql.yml
File renamed without changes
View
0  config-3.0/database.sqlite3.yml → config/database.sqlite3.yml
File renamed without changes
View
0  config-3.0/database.sqlserver.yml → config/database.sqlserver.yml
File renamed without changes
View
0  config-3.0/environment.rb → config/environment.rb
File renamed without changes
View
0  config-3.0/environments/development.rb → config/environments/development.rb
File renamed without changes
View
0  config-3.0/environments/production.rb → config/environments/production.rb
File renamed without changes
View
0  config-3.0/environments/test.rb → config/environments/test.rb
File renamed without changes
View
0  config-3.0/initializers/10-patches.rb → config/initializers/10-patches.rb
File renamed without changes
View
0  config-3.0/initializers/backtrace_silencers.rb → config/initializers/backtrace_silencers.rb
File renamed without changes
View
2  config-3.0/initializers/formize.rb → config/initializers/formize.rb
@@ -1,2 +1,2 @@
-
+# require 'formize'
Formize.default_source = ["@current_company", "Company"]
View
0  config-3.0/initializers/gems.rb → config/initializers/gems.rb
File renamed without changes
View
0  config-3.0/initializers/inflections.rb → config/initializers/inflections.rb
File renamed without changes
View
0  config-3.0/initializers/mime_types.rb → config/initializers/mime_types.rb
File renamed without changes
View
0  config-3.0/initializers/new_rails_defaults.rb → config/initializers/new_rails_defaults.rb
File renamed without changes
View
0  config-3.0/initializers/secret_token.rb → config/initializers/secret_token.rb
File renamed without changes
View
0  config-3.0/initializers/session_store.rb → config/initializers/session_store.rb
File renamed without changes
View
0  config-3.0/locales/arb/accounting.yml → config/locales/arb/accounting.yml
File renamed without changes
View
0  config-3.0/locales/arb/action.yml → config/locales/arb/action.yml
File renamed without changes
View
0  config-3.0/locales/arb/countries.yml → config/locales/arb/countries.yml
File renamed without changes
View
0  config-3.0/locales/arb/i18n.rb → config/locales/arb/i18n.rb
File renamed without changes
View
0  config-3.0/locales/arb/languages.yml → config/locales/arb/languages.yml
File renamed without changes
View
0  config-3.0/locales/arb/models.yml → config/locales/arb/models.yml
File renamed without changes
View
0  config-3.0/locales/arb/rights.yml → config/locales/arb/rights.yml
File renamed without changes
View
0  config-3.0/locales/arb/support.yml → config/locales/arb/support.yml
File renamed without changes
View
0  config-3.0/locales/eng/accounting.yml → config/locales/eng/accounting.yml
File renamed without changes
View
0  config-3.0/locales/eng/action.yml → config/locales/eng/action.yml
File renamed without changes
View
0  config-3.0/locales/eng/countries.yml → config/locales/eng/countries.yml
File renamed without changes
View
0  config-3.0/locales/eng/help/accounts-index.txt → config/locales/eng/help/accounts-index.txt
File renamed without changes
View
0  config-3.0/locales/eng/help/journals-bookkeep.txt → config/locales/eng/help/journals-bookkeep.txt
File renamed without changes
View
0  config-3.0/locales/eng/i18n.rb → config/locales/eng/i18n.rb
File renamed without changes
View
0  config-3.0/locales/eng/languages.yml → config/locales/eng/languages.yml
File renamed without changes
View
0  config-3.0/locales/eng/models.yml → config/locales/eng/models.yml
File renamed without changes
View
0  config-3.0/locales/eng/prints/balance_sheet.xml → config/locales/eng/prints/balance_sheet.xml
File renamed without changes
View
0  config-3.0/locales/eng/prints/deposit.xml → config/locales/eng/prints/deposit.xml
File renamed without changes
View
0  config-3.0/locales/eng/prints/entity.xml → config/locales/eng/prints/entity.xml
File renamed without changes
View
0  config-3.0/locales/eng/prints/general_journal.xml → config/locales/eng/prints/general_journal.xml
File renamed without changes
View
0  config-3.0/locales/eng/prints/general_ledger.xml → config/locales/eng/prints/general_ledger.xml
File renamed without changes
View
0  config-3.0/locales/fra/prints/income_statement.xml → config/locales/eng/prints/income_statement.xml
File renamed without changes
View
0  config-3.0/locales/fra/prints/inventory.xml → config/locales/eng/prints/inventory.xml
File renamed without changes
View
0  config-3.0/locales/eng/prints/journal.xml → config/locales/eng/prints/journal.xml
File renamed without changes
View
0  config-3.0/locales/fra/prints/order_preparation.xml → config/locales/eng/prints/order_preparation.xml
File renamed without changes
View
0  config-3.0/locales/eng/prints/purchase_order.xml → config/locales/eng/prints/purchase_order.xml
File renamed without changes
View
0  config-3.0/locales/eng/prints/sales_invoice.xml → config/locales/eng/prints/sales_invoice.xml
File renamed without changes
View
0  config-3.0/locales/eng/prints/sales_order.xml → config/locales/eng/prints/sales_order.xml
File renamed without changes
View
0  config-3.0/locales/fra/prints/stocks.xml → config/locales/eng/prints/stocks.xml
File renamed without changes
View
0  config-3.0/locales/eng/prints/transport.xml → config/locales/eng/prints/transport.xml
File renamed without changes
View
0  config-3.0/locales/eng/rights.yml → config/locales/eng/rights.yml
File renamed without changes
View
0  config-3.0/locales/eng/support.yml → config/locales/eng/support.yml
File renamed without changes
View
0  config-3.0/locales/fra/accounting.yml → config/locales/fra/accounting.yml
File renamed without changes
View
0  config-3.0/locales/fra/action.yml → config/locales/fra/action.yml
File renamed without changes
View
0  config-3.0/locales/fra/countries.yml → config/locales/fra/countries.yml
File renamed without changes
View
0  config-3.0/locales/fra/help/accounts-index.txt → config/locales/fra/help/accounts-index.txt
File renamed without changes
View
0  config-3.0/locales/fra/help/accounts-mark.txt → config/locales/fra/help/accounts-mark.txt
File renamed without changes
View
0  ...-3.0/locales/fra/help/accounts-reconciliation.txt → config/locales/fra/help/accounts-reconciliation.txt
File renamed without changes
View
0  config-3.0/locales/fra/help/areas-index.txt → config/locales/fra/help/areas-index.txt
File renamed without changes
View
0  ...ig-3.0/locales/fra/help/bank_statements-index.txt → config/locales/fra/help/bank_statements-index.txt
File renamed without changes
View
0  ...ig-3.0/locales/fra/help/bank_statements-point.txt → config/locales/fra/help/bank_statements-point.txt
File renamed without changes
View
0  config-3.0/locales/fra/help/cashes-index.txt → config/locales/fra/help/cashes-index.txt
File renamed without changes
View
0  config-3.0/locales/fra/help/contacts-index.txt → config/locales/fra/help/contacts-index.txt
File renamed without changes
View
0  ...0/locales/fra/help/custom_field_choices-index.txt → ...g/locales/fra/help/custom_field_choices-index.txt
File renamed without changes
View
2  config-3.0/locales/fra/help/custom_fields-index.txt → config/locales/fra/help/custom_fields-index.txt
@@ -12,7 +12,7 @@ En revanche, si vous ne voulez plus que celui-ci n'apparaisse dans les formulair
==== La création ====
* Le nom est le nom qui sera attribué à votre champ.
* Le champ "obligatoire" permet de savoir si la valeur du champ personnalisé créé est à saisir obligatoirement lors de la création/modification d'une fiche client/fournisseur ou si celle-ci peut ne pas être renseignée.
- * Le type de donnée liste de choix correspond à une liste déroulante qui va contenir différentes valeurs qu'il est possible de paramétrer dans la partie [[custom_field_choices-index|Options pour la liste déroulante]].
+ * Le type de donnée liste de choix correspond à une liste déroulante qui va contenir différentes valeurs qu'il est possible de paramétrer.
==== Les options ====
Dans le cas ou vous créez un champ qui est du type texte ou décimal, vous avez la possibilité de rajouter des options à ce champ: un nombre maximum de caractère pour le texte ou des intervalles pour un décimal. Les intervalles permettent de rajouter des options de validation lors de la création/modification d'une fiche. Si la valeur est inférieure à l'intervalle bas ou supérieure à l'intervalle haut, alors une erreur est signalée est la validation du formulaire est impossible.
View
0  ...g-3.0/locales/fra/help/dashboards-accountancy.txt → config/locales/fra/help/dashboards-accountancy.txt
File renamed without changes
View
0  config-3.0/locales/fra/help/dashboards-general.txt → config/locales/fra/help/dashboards-general.txt
File renamed without changes
View
0  ...ig-3.0/locales/fra/help/dashboards-production.txt → config/locales/fra/help/dashboards-production.txt
File renamed without changes
View
0  config-3.0/locales/fra/help/dashboards-relations.txt → config/locales/fra/help/dashboards-relations.txt
File renamed without changes
View
0  config-3.0/locales/fra/help/dashboards-resources.txt → config/locales/fra/help/dashboards-resources.txt
File renamed without changes
View
0  config-3.0/locales/fra/help/dashboards-trade.txt → config/locales/fra/help/dashboards-trade.txt
File renamed without changes
View
0  config-3.0/locales/fra/help/dashboards-welcome.txt → config/locales/fra/help/dashboards-welcome.txt
File renamed without changes
View
0  config-3.0/locales/fra/help/delays-index.txt → config/locales/fra/help/delays-index.txt
File renamed without changes
View
0  config-3.0/locales/fra/help/departments-index.txt → config/locales/fra/help/departments-index.txt
File renamed without changes
View
0  config-3.0/locales/fra/help/deposits-index.txt → config/locales/fra/help/deposits-index.txt
File renamed without changes
View
0  ...ig-3.0/locales/fra/help/deposits-unvalidateds.txt → config/locales/fra/help/deposits-unvalidateds.txt
File renamed without changes
View
0  config-3.0/locales/fra/help/districts-index.txt → config/locales/fra/help/districts-index.txt
File renamed without changes
View
0  ...3.0/locales/fra/help/document_templates-index.txt → config/locales/fra/help/document_templates-index.txt
File renamed without changes
View
0  config-3.0/locales/fra/help/documents-print.txt → config/locales/fra/help/documents-print.txt
File renamed without changes
View
0  config-3.0/locales/fra/help/entities-export.txt → config/locales/fra/help/entities-export.txt
File renamed without changes
View
0  config-3.0/locales/fra/help/entities-import.txt → config/locales/fra/help/entities-import.txt
File renamed without changes
View
0  config-3.0/locales/fra/help/entities-index.txt → config/locales/fra/help/entities-index.txt
File renamed without changes
View
0  config-3.0/locales/fra/help/entities-merge.txt → config/locales/fra/help/entities-merge.txt
File renamed without changes
View
0  ...-3.0/locales/fra/help/entity_categories-index.txt → config/locales/fra/help/entity_categories-index.txt
File renamed without changes
View
0  ....0/locales/fra/help/entity_link_natures-index.txt → ...ig/locales/fra/help/entity_link_natures-index.txt
File renamed without changes
View
0  config-3.0/locales/fra/help/entity_links-index.txt → config/locales/fra/help/entity_links-index.txt
File renamed without changes
View
0  config-3.0/locales/fra/help/entity_natures-index.txt → config/locales/fra/help/entity_natures-index.txt
File renamed without changes
View
0  config-3.0/locales/fra/help/establishments-index.txt → config/locales/fra/help/establishments-index.txt
File renamed without changes
View
0  config-3.0/locales/fra/help/event_natures-index.txt → config/locales/fra/help/event_natures-index.txt
File renamed without changes
View
0  config-3.0/locales/fra/help/events-index.txt → config/locales/fra/help/events-index.txt
File renamed without changes
View
0  ...ig-3.0/locales/fra/help/financial_years-close.txt → config/locales/fra/help/financial_years-close.txt
File renamed without changes
View
0  ...ig-3.0/locales/fra/help/financial_years-index.txt → config/locales/fra/help/financial_years-index.txt
File renamed without changes
View
0  config-3.0/locales/fra/help/help-index.txt → config/locales/fra/help/help-index.txt
File renamed without changes
View
0  ....0/locales/fra/help/incoming_deliveries-index.txt → ...ig/locales/fra/help/incoming_deliveries-index.txt
File renamed without changes
View
0  ...ocales/fra/help/incoming_delivery_modes-index.txt → ...ocales/fra/help/incoming_delivery_modes-index.txt
File renamed without changes
View
0  ...locales/fra/help/incoming_payment_modes-index.txt → ...locales/fra/help/incoming_payment_modes-index.txt
File renamed without changes
View
0  ....0/locales/fra/help/incoming_payment_uses-new.txt → ...ig/locales/fra/help/incoming_payment_uses-new.txt
File renamed without changes
View
0  ...-3.0/locales/fra/help/incoming_payments-index.txt → config/locales/fra/help/incoming_payments-index.txt
File renamed without changes
View
0  config-3.0/locales/fra/help/inventories-index.txt → config/locales/fra/help/inventories-index.txt
File renamed without changes
View
0  config-3.0/locales/fra/help/journals-balance.txt → config/locales/fra/help/journals-balance.txt
File renamed without changes
View
0  config-3.0/locales/fra/help/journals-bookkeep.txt → config/locales/fra/help/journals-bookkeep.txt
File renamed without changes
View
0  config-3.0/locales/fra/help/journals-close.txt → config/locales/fra/help/journals-close.txt
File renamed without changes
View
0  ...-3.0/locales/fra/help/journals-general_ledger.txt → config/locales/fra/help/journals-general_ledger.txt
File renamed without changes
View
0  config-3.0/locales/fra/help/journals-index.txt → config/locales/fra/help/journals-index.txt
File renamed without changes
View
0  config-3.0/locales/fra/help/journals-reopen.txt → config/locales/fra/help/journals-reopen.txt
File renamed without changes
View
0  config-3.0/locales/fra/help/land_parcels-index.txt → config/locales/fra/help/land_parcels-index.txt
File renamed without changes
View
0  config-3.0/locales/fra/help/listings-index.txt → config/locales/fra/help/listings-index.txt
File renamed without changes
View
0  config-3.0/locales/fra/help/mandates-configure.txt → config/locales/fra/help/mandates-configure.txt
File renamed without changes
View
0  config-3.0/locales/fra/help/mandates-index.txt → config/locales/fra/help/mandates-index.txt
File renamed without changes
View
0  ...3.0/locales/fra/help/myselves-change_password.txt → config/locales/fra/help/myselves-change_password.txt
File renamed without changes
View
0  config-3.0/locales/fra/help/myselves-statistics.txt → config/locales/fra/help/myselves-statistics.txt
File renamed without changes
View
0  config-3.0/locales/fra/help/observations-index.txt → config/locales/fra/help/observations-index.txt
File renamed without changes
View
0 